Commit 0679dee7 authored by Louis Lenders's avatar Louis Lenders Committed by Alexandre Julliard

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

parent aaa1c802
...@@ -772,6 +772,7 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ...@@ -772,6 +772,7 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
switch(msg) switch(msg)
{ {
case WM_NCCREATE: case WM_NCCREATE:
if (lParam)
{ {
CREATESTRUCTA *cs = (CREATESTRUCTA *)lParam; CREATESTRUCTA *cs = (CREATESTRUCTA *)lParam;
/* check for string, as static icons, bitmaps (SS_ICON, SS_BITMAP) /* check for string, as static icons, bitmaps (SS_ICON, SS_BITMAP)
...@@ -930,6 +931,7 @@ LRESULT WINAPI DefWindowProcW( ...@@ -930,6 +931,7 @@ LRESULT WINAPI DefWindowProcW(
switch(msg) switch(msg)
{ {
case WM_NCCREATE: case WM_NCCREATE:
if (lParam)
{ {
CREATESTRUCTW *cs = (CREATESTRUCTW *)lParam; CREATESTRUCTW *cs = (CREATESTRUCTW *)lParam;
/* check for string, as static icons, bitmaps (SS_ICON, SS_BITMAP) /* check for string, as static icons, bitmaps (SS_ICON, SS_BITMAP)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment