fix compilation errors

This commit is contained in:
Vincent Wei
2021-03-24 12:28:23 +08:00
parent 48b84e3100
commit 697177266b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1762,8 +1762,8 @@ int __mg_do_change_topmost_layer (void)
nodes = GET_ZORDERNODE(__mg_zorder_info);
nodes [0].age++;
while (next = __kernel_get_next_znode (__mg_zorder_info, from) > 0) {
nodes [i].age++;
while ((next = __kernel_get_next_znode (__mg_zorder_info, from)) > 0) {
nodes [next].age++;
from = next;
}
+1 -1
View File
@@ -2321,7 +2321,7 @@ static int AllocZOrderNodeEx (ZORDERINFO* zi, int cli, HWND hwnd, HWND main_win,
nodes [free_slot].priv_data = NULL;
#ifndef _MGSCHEMA_COMPOSITING
if (idx_mask_rect == 0 && (flags & ZOF_TW_TROUNDCNS || flags & ZOF_TW_BROUNDCNS)) {
if ((flags & ZOF_TW_TROUNDCNS || flags & ZOF_TW_BROUNDCNS)) {
RECT cli_rect;
SetRect (&cli_rect, 0, 0, RECTW(nodes[free_slot].rc),