fix RAIL abort when reconnect

Signed-off-by: 2fly2 <wjatchd@163.com>
This commit is contained in:
2fly2 2022-05-16 10:30:30 +08:00 committed by akallabeth
parent 8a06ed9299
commit 8f831ed324

View File

@ -1159,6 +1159,12 @@ xfAppWindow* xf_AppWindowFromX11Window(xfContext* xfc, Window wnd)
int count;
ULONG_PTR* pKeys = NULL;
xfAppWindow* appWindow;
if(NULL == xfc->railWindows)
{
return NULL;
}
count = HashTable_GetKeys(xfc->railWindows, &pKeys);
for (index = 0; index < count; index++)