1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +00:00

wow64win: Skip WM_CREATE/WM_NCCREATE lParam conversion if NULL.

lParam being NULL is handled in win32u/defwnd.c so make sure to pass the NULL
through rather than relying on the pointer always being valid since it may not
be in this case.
This commit is contained in:
Billy Laws 2023-07-11 23:18:36 +01:00 committed by Alexandre Julliard
parent 83b86d18dc
commit a632ac55d9

View File

@ -3264,6 +3264,7 @@ static LRESULT message_call_32to64( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
{
case WM_NCCREATE:
case WM_CREATE:
if (lparam)
{
CREATESTRUCT32 *cs32 = (void *)lparam;
CREATESTRUCTW cs;
@ -3282,6 +3283,7 @@ static LRESULT message_call_32to64( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
cs32->dwExStyle = cs.dwExStyle;
return ret;
}
return NtUserMessageCall( hwnd, msg, wparam, lparam, result_info, type, ansi );
case WM_MDICREATE:
{