mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-25 02:33:59 +08:00
fix a bug in ServerGetWinZNodeRegion
This commit is contained in:
@@ -4555,12 +4555,13 @@ BOOL GUIAPI ServerGetWinZNodeRegion (MG_Layer* layer, int idx_znode,
|
||||
if (!mgIsServer || idx_znode <= 0)
|
||||
return FALSE;
|
||||
|
||||
if (layer) {
|
||||
if (layer == NULL) {
|
||||
zi = mgTopmostLayer->zorder_info;
|
||||
}
|
||||
else {
|
||||
if (!__mg_is_valid_layer (layer))
|
||||
if (!__mg_is_valid_layer (layer)) {
|
||||
return FALSE;
|
||||
}
|
||||
zi = layer->zorder_info;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user