mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Fix invalid C constructs (spotted by Marcus Meissner).
This commit is contained in:
parent
e4a7a2a6d0
commit
80428c4c9d
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user