[USER32]: Now for the real fix: Initialize lpLibFileName and pCtx in User32CreateWind...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 1 Mar 2017 19:36:51 +0000 (19:36 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 1 Mar 2017 19:36:51 +0000 (19:36 +0000)
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

index 555001a..4c79dcc 100644 (file)
@@ -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);