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

win32u: Correct the packed size of WM_GETDLGCODE when lparam is NULL.

This commit is contained in:
Tim Clem 2023-09-07 09:55:44 -07:00 committed by Alexandre Julliard
parent 90f9b92762
commit c8bc841405
2 changed files with 1 additions and 2 deletions

View File

@ -1691,7 +1691,7 @@ size_t user_message_size( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam,
size = sizeof(STYLESTRUCT);
break;
case WM_GETDLGCODE:
size = sizeof(MSG);
if (lparam) size = sizeof(MSG);
break;
case SBM_SETSCROLLINFO:
case SBM_GETSCROLLINFO:

View File

@ -1063,7 +1063,6 @@ static void test_inter_process_child( HWND hwnd )
ok( res == 4, "res = %d\n", res );
res = NtUserMessageCall( hwnd, WM_GETDLGCODE, 0, 0, NULL, NtUserSendMessage, TRUE );
todo_wine
ok( res == 1, "res = %d\n", res );
mdi.szClass = "TestClass";