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

Michael Stefaniuc mstefani at redhat.de
Mon Oct 12 17:31:43 CDT 2015


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 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 6a1816f..c3f9d08 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;
-- 
2.1.0



More information about the wine-patches mailing list