initialize lock_count for new znode to zero

This commit is contained in:
Vincent Wei
2020-02-06 10:57:39 +08:00
parent 739d90a15f
commit 49f1ac7ef7
+1
View File
@@ -2051,6 +2051,7 @@ static int AllocZOrderNodeEx (ZORDERINFO* zi, int cli, HWND hwnd, HWND main_win,
nodes [free_slot].cli = cli;
nodes [free_slot].hwnd = hwnd;
nodes [free_slot].main_win = main_win;
nodes [free_slot].lock_count = 0;
#ifdef _MGSCHEMA_COMPOSITING
nodes [free_slot].changes = 0;
nodes [free_slot].ct = validate_compositing_type (ct);