Skip to content

Commit

Permalink
wow64win: Skip WM_CREATE/WM_NCCREATE lParam conversion if NULL.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bylaws authored and julliard committed Aug 10, 2023
1 parent 83b86d1 commit a632ac5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dlls/wow64win/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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:
{
Expand Down

0 comments on commit a632ac5

Please sign in to comment.