Michael Stefaniuc : comctl32/tests: WC_DIALOG is already an INTATOM ( PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Oct 13 10:53:47 CDT 2015


Module: wine
Branch: master
Commit: a16a27075138e84cd8ebac640930e89b8928a98a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a16a27075138e84cd8ebac640930e89b8928a98a

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Oct 13 00:31:43 2015 +0200

comctl32/tests: WC_DIALOG is already an INTATOM (PVS-Studio).

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/tests/propsheet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/comctl32/tests/propsheet.c b/dlls/comctl32/tests/propsheet.c
index 9a422f1..6594298 100644
--- a/dlls/comctl32/tests/propsheet.c
+++ b/dlls/comctl32/tests/propsheet.c
@@ -300,7 +300,7 @@ static LRESULT CALLBACK hook_proc( int code, WPARAM wp, LPARAM lp )
         CBT_CREATEWNDW *c = (CBT_CREATEWNDW *)lp;
 
         /* The first dialog created will be the parent dialog */
-        if (!done && c->lpcs->lpszClass == MAKEINTRESOURCEW(WC_DIALOG))
+        if (!done && c->lpcs->lpszClass == (LPWSTR)WC_DIALOG)
         {
             old_nav_dialog_proc = (WNDPROC)SetWindowLongPtrW( (HWND)wp, GWLP_WNDPROC, (LONG_PTR)new_nav_dialog_proc );
             done = TRUE;




More information about the wine-cvs mailing list