[PATCH 2/2] Explicitly initialize window handle
Nikolay Sivov
bunglehead at gmail.com
Fri Oct 23 05:46:43 CDT 2009
---
dlls/comctl32/tests/toolbar.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tests/toolbar.c b/dlls/comctl32/tests/toolbar.c
index d0a444e..3b3708b 100644
--- a/dlls/comctl32/tests/toolbar.c
+++ b/dlls/comctl32/tests/toolbar.c
@@ -162,7 +162,7 @@ static void basic_test(void)
static void rebuild_toolbar(HWND *hToolbar)
{
- if (*hToolbar != NULL)
+ if (*hToolbar)
DestroyWindow(*hToolbar);
*hToolbar = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE, 0, 0, 0, 0,
hMainWnd, (HMENU)5, GetModuleHandle(NULL), NULL);
@@ -1082,7 +1082,7 @@ static void restore_recalc_state(HWND hToolbar)
static void test_recalc(void)
{
- HWND hToolbar;
+ HWND hToolbar = NULL;
TBBUTTONINFO bi;
CHAR test[] = "Test";
const int EX_STYLES_COUNT = 5;
--
1.5.6.5
--=-uCKWVCYqRX2PSCiohQXU--
More information about the wine-patches
mailing list