mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 16:45:48 +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:
parent
83b86d18dc
commit
a632ac55d9
|
@ -3264,6 +3264,7 @@ static LRESULT message_call_32to64( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
|
||||||
{
|
{
|
||||||
case WM_NCCREATE:
|
case WM_NCCREATE:
|
||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
|
if (lparam)
|
||||||
{
|
{
|
||||||
CREATESTRUCT32 *cs32 = (void *)lparam;
|
CREATESTRUCT32 *cs32 = (void *)lparam;
|
||||||
CREATESTRUCTW cs;
|
CREATESTRUCTW cs;
|
||||||
|
@ -3282,6 +3283,7 @@ static LRESULT message_call_32to64( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
|
||||||
cs32->dwExStyle = cs.dwExStyle;
|
cs32->dwExStyle = cs.dwExStyle;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
return NtUserMessageCall( hwnd, msg, wparam, lparam, result_info, type, ansi );
|
||||||
|
|
||||||
case WM_MDICREATE:
|
case WM_MDICREATE:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue