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)
|
if (!stack)
|
||||||
return FALSE;
|
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");
|
TRACE("Last Subclass removed, cleaning up\n");
|
||||||
/* clean up our heap and reset the origional window procedure */
|
/* clean up our heap and reset the origional window procedure */
|
||||||
if (IsWindowUnicode (hWnd))
|
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
|
/* If we removed the last entry in our stack while a window procedure was
|
||||||
* running then we have to clean up */
|
* 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");
|
TRACE("Last Subclass removed, cleaning up\n");
|
||||||
/* clean up our heap and reset the origional window procedure */
|
/* clean up our heap and reset the origional window procedure */
|
||||||
if (IsWindowUnicode (hWnd))
|
if (IsWindowUnicode (hWnd))
|
||||||
|
|
Loading…
Reference in New Issue