From 80428c4c9db04aa5f8b395ed30a28677abc0e390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20=27Nog=27=20Jeney?= Date: Thu, 11 Sep 2003 01:03:27 +0000 Subject: [PATCH] Fix invalid C constructs (spotted by Marcus Meissner). --- dlls/comctl32/commctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/commctrl.c b/dlls/comctl32/commctrl.c index cf1f961363..bb1464c859 100644 --- a/dlls/comctl32/commctrl.c +++ b/dlls/comctl32/commctrl.c @@ -1211,7 +1211,7 @@ BOOL WINAPI RemoveWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR u if (!stack) return FALSE; - if ((stack->stacknum == stack->stackpos == 1) && !stack->stacknew) { + if ((stack->stacknum == 1) && (stack->stackpos == 1) && !stack->stacknew) { TRACE("Last Subclass removed, cleaning up\n"); /* clean up our heap and reset the origional window procedure */ if (IsWindowUnicode (hWnd)) @@ -1299,7 +1299,7 @@ LRESULT WINAPI DefSubclassProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar /* If we removed the last entry in our stack while a window procedure was * running then we have to clean up */ - if (stack->stackpos == stack->stacknum == 0) { + if ((stack->stackpos == 0) && (stack->stacknum == 0)) { TRACE("Last Subclass removed, cleaning up\n"); /* clean up our heap and reset the origional window procedure */ if (IsWindowUnicode (hWnd))