user32: Don't crash if a WM_NCCREATE message is sent with lParam=0.

This commit is contained in:
Louis Lenders 2007-02-07 19:57:55 +00:00 committed by Alexandre Julliard
parent aaa1c802a4
commit 0679dee775
1 changed files with 2 additions and 0 deletions

View File

@ -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)