From c8bc841405e89b88659c6954e81cb244650c40c3 Mon Sep 17 00:00:00 2001 From: Tim Clem Date: Thu, 7 Sep 2023 09:55:44 -0700 Subject: [PATCH] win32u: Correct the packed size of WM_GETDLGCODE when lparam is NULL. --- dlls/win32u/message.c | 2 +- dlls/win32u/tests/win32u.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/win32u/message.c b/dlls/win32u/message.c index d15f9af3f9f..d2909339983 100644 --- a/dlls/win32u/message.c +++ b/dlls/win32u/message.c @@ -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: diff --git a/dlls/win32u/tests/win32u.c b/dlls/win32u/tests/win32u.c index efc7249eca7..e118d081ead 100644 --- a/dlls/win32u/tests/win32u.c +++ b/dlls/win32u/tests/win32u.c @@ -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";