From ac30d46b69b05feb42aeec83e741388fd8719d88 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 26 May 2006 16:34:09 +0200 Subject: [PATCH] comctl32: Dialog procedures should be called with CallWindowProc. --- dlls/comctl32/theme_dialog.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/comctl32/theme_dialog.c b/dlls/comctl32/theme_dialog.c index d9a0a050d6d..cfcb56f937b 100644 --- a/dlls/comctl32/theme_dialog.c +++ b/dlls/comctl32/theme_dialog.c @@ -74,8 +74,8 @@ LRESULT CALLBACK THEMING_DialogSubclassProc (HWND hWnd, UINT msg, if (!doTheming) return THEMING_CallOriginalClass (hWnd, msg, wParam, lParam); { RECT rc; - DLGPROC dlgp = (DLGPROC)GetWindowLongPtrW (hWnd, DWLP_DLGPROC); - if (!dlgp (hWnd, msg, wParam, lParam)) + WNDPROC dlgp = (WNDPROC)GetWindowLongPtrW (hWnd, DWLP_DLGPROC); + if (!CallWindowProcW(dlgp, hWnd, msg, wParam, lParam)) { /* Draw background*/ GetClientRect (hWnd, &rc); @@ -104,8 +104,8 @@ LRESULT CALLBACK THEMING_DialogSubclassProc (HWND hWnd, UINT msg, case WM_CTLCOLORSTATIC: if (!doTheming) return THEMING_CallOriginalClass (hWnd, msg, wParam, lParam); { - DLGPROC dlgp = (DLGPROC)GetWindowLongPtrW (hWnd, DWLP_DLGPROC); - LRESULT result = (LRESULT)dlgp (hWnd, msg, wParam, lParam); + WNDPROC dlgp = (WNDPROC)GetWindowLongPtrW (hWnd, DWLP_DLGPROC); + LRESULT result = CallWindowProcW(dlgp, hWnd, msg, wParam, lParam); if (!result) { /* Override defaults with more suitable values when themed */