From 0f16aa1842d2bb9f5b8410cfd342680a9a1844ac Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 30 Nov 2021 16:51:41 +0100 Subject: [PATCH] user.exe: Fix WM_ERASEBKGND HDC param conversion in WINPROC_CallProc16To32A. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51624 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51899 Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/user.exe16/message.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/user.exe16/message.c b/dlls/user.exe16/message.c index e0f5bfa5d19..b79b0cb7751 100644 --- a/dlls/user.exe16/message.c +++ b/dlls/user.exe16/message.c @@ -905,6 +905,9 @@ LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT1 case WM_SIZECLIPBOARD: FIXME_(msg)( "message %04x needs translation\n", msg ); break; + case WM_ERASEBKGND: + ret = callback( hwnd32, msg, (WPARAM)HDC_32(wParam), lParam, result, arg ); + break; default: ret = callback( hwnd32, msg, wParam, lParam, result, arg ); break;