From 41733bc32853ebbc9f67eb29828c22d964ee968b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Wed, 1 Mar 2017 19:36:51 +0000 Subject: [PATCH] [USER32]: Now for the real fix: Initialize lpLibFileName and pCtx in User32CreateWindowEx prior to calling ClassNameToVersion. This avoid passing invalid parameters to VersionRegisterClass (and subsequent functions) afterwards. Fix suggested by Mark Jansen, thanks! CORE-12855 svn path=/trunk/; revision=74018 --- reactos/win32ss/user/user32/windows/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/win32ss/user/user32/windows/window.c b/reactos/win32ss/user/user32/windows/window.c index 555001aa9c5..4c79dcc91c7 100644 --- a/reactos/win32ss/user/user32/windows/window.c +++ b/reactos/win32ss/user/user32/windows/window.c @@ -176,8 +176,8 @@ User32CreateWindowEx(DWORD dwExStyle, BOOL Unicode, ClassFound = FALSE; HWND Handle = NULL; LPCWSTR lpszClsVersion; - HANDLE pCtx; - LPCWSTR lpLibFileName; + LPCWSTR lpLibFileName = NULL; + HANDLE pCtx = NULL; #if 0 DbgPrint("[window] User32CreateWindowEx style %d, exstyle %d, parent %d\n", dwStyle, dwExStyle, hWndParent);