[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
This commit is contained in:
Hermès Bélusca-Maïto 2017-03-01 19:36:51 +00:00
parent 0366c75f60
commit 41733bc328

View 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);