user32: Don't crash if a WM_NCCREATE message is sent with lParam=0.
This commit is contained in:
parent
aaa1c802a4
commit
0679dee775
|
@ -772,6 +772,7 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
|
|||
switch(msg)
|
||||
{
|
||||
case WM_NCCREATE:
|
||||
if (lParam)
|
||||
{
|
||||
CREATESTRUCTA *cs = (CREATESTRUCTA *)lParam;
|
||||
/* check for string, as static icons, bitmaps (SS_ICON, SS_BITMAP)
|
||||
|
@ -930,6 +931,7 @@ LRESULT WINAPI DefWindowProcW(
|
|||
switch(msg)
|
||||
{
|
||||
case WM_NCCREATE:
|
||||
if (lParam)
|
||||
{
|
||||
CREATESTRUCTW *cs = (CREATESTRUCTW *)lParam;
|
||||
/* check for string, as static icons, bitmaps (SS_ICON, SS_BITMAP)
|
||||
|
|
Loading…
Reference in New Issue