Nikolay Sivov : comctl32/tests: Explicitly initialize window handle.
Alexandre Julliard
julliard at winehq.org
Fri Oct 23 10:19:05 CDT 2009
Module: wine
Branch: master
Commit: a04c6db804bc52082cf0064ca12e21b05be60352
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a04c6db804bc52082cf0064ca12e21b05be60352
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Fri Oct 23 14:46:43 2009 +0400
comctl32/tests: Explicitly initialize window handle.
---
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;
More information about the wine-cvs
mailing list