mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-09 04:57:05 +08:00
initialize dirty_rcs to NULL for allocated new z-nodes
This commit is contained in:
@@ -1534,6 +1534,7 @@ static int srvStartTrackPopupMenu (int cli, const RECT* rc, HWND ptmi,
|
||||
menu_nodes [zi->nr_popupmenus].ct = CT_OPAQUE;
|
||||
menu_nodes [zi->nr_popupmenus].ct_arg = 0;
|
||||
menu_nodes [zi->nr_popupmenus].mem_dc = memdc;
|
||||
menu_nodes [zi->nr_popupmenus].dirty_rcs = NULL;
|
||||
#endif
|
||||
|
||||
if (zi->cli_trackmenu == -1)
|
||||
@@ -2067,6 +2068,7 @@ static int AllocZOrderNodeEx (ZORDERINFO* zi, int cli, HWND hwnd, HWND main_win,
|
||||
nodes [free_slot].ct = validate_compositing_type (ct);
|
||||
nodes [free_slot].ct_arg = ct_arg;
|
||||
nodes [free_slot].mem_dc = mem_dc;
|
||||
nodes [free_slot].dirty_rcs = NULL;
|
||||
#endif
|
||||
nodes [free_slot].idx_mask_rect = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user