return client identifier if ok

This commit is contained in:
Vincent Wei
2020-09-06 09:48:24 +08:00
parent 97f4215330
commit 5944085555

View File

@@ -757,8 +757,15 @@ int GUIAPI ServerGetTopmostZNodeOfType (MG_Layer* layer, DWORD type, int* cli)
zi = (ZORDERINFO*)layer->zorder_info;
topmost = zi->first_in_levels [ZOF_TYPE_TOOLTIP - type];
if (topmost <= 0)
if (topmost <= 0) {
return 0;
}
else if (cli) {
ZORDERNODE* nodes;
nodes = GET_ZORDERNODE(zi);
*cli = nodes [topmost].cli;
}
return topmost;
}