comctl32: Have to use CallWindowProc to call WNDPROC.

Vitaliy Margolen wine-patch at kievinfo.com
Fri May 26 09:57:28 CDT 2006


ChangeLog:
comctl32: Have to use CallWindowProc to call WNDPROC.

 dlls/comctl32/theme_dialog.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
-------------- next part --------------
539bf90f6e753fc60c9a68abaa410fe5b5d52ef8
diff --git a/dlls/comctl32/theme_dialog.c b/dlls/comctl32/theme_dialog.c
index d9a0a05..cfcb56f 100644
--- a/dlls/comctl32/theme_dialog.c
+++ b/dlls/comctl32/theme_dialog.c
@@ -74,8 +74,8 @@ LRESULT CALLBACK THEMING_DialogSubclassP
 	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 @@ #endif
     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 */


More information about the wine-patches mailing list