[comctl32/tests] Fix typo (Coverity)

Paul Vriens paul.vriens.wine at gmail.com
Wed Feb 7 13:21:02 CST 2007


Hi,

Fix for Coverity CID-497.

Changelog
    Fix typo

Cheers,

Paul.

-------------- next part --------------
diff --git a/dlls/comctl32/tests/rebar.c b/dlls/comctl32/tests/rebar.c
index 4cc6a4e..23497ef 100644
--- a/dlls/comctl32/tests/rebar.c
+++ b/dlls/comctl32/tests/rebar.c
@@ -33,7 +33,7 @@ static HWND hRebar;
 
 static void rebuild_rebar(HWND *hRebar)
 {
-    if (hRebar)
+    if (*hRebar)
         DestroyWindow(*hRebar);
 
     *hRebar = CreateWindow(REBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE, 0, 0, 0, 0,
-- 
1.4.4.4




More information about the wine-patches mailing list