Author: hbelusca
Date: Wed Mar 1 19:36:51 2017
New Revision: 74018
URL:
http://svn.reactos.org/svn/reactos?rev=74018&view=rev
Log:
[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
Modified:
trunk/reactos/win32ss/user/user32/windows/window.c
Modified: trunk/reactos/win32ss/user/user32/windows/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/window.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/window.c [iso-8859-1] Wed Mar 1 19:36:51
2017
@@ -176,8 +176,8 @@
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);