ChangeLog:
* Fix invalid C constructs (as Spotted by Marcus Meissner)
nog.
Index: dlls/comctl32/commctrl.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/commctrl.c,v
retrieving revision 1.69
diff -u -r1.69 commctrl.c
--- dlls/comctl32/commctrl.c 5 Sep 2003 23:08:43 -0000 1.69
+++ dlls/comctl32/commctrl.c 10 Sep 2003 17:30:03 -0000
@@ -1211,7 +1211,7 @@
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 @@
/* 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))