Fix #4398: Ignore min/max info for non existing window.
This commit is contained in:
parent
51e59e1f2e
commit
6950d95af0
@ -846,14 +846,15 @@ static UINT xf_rail_server_min_max_info(RailClientContext* context,
|
||||
appWindow = (xfAppWindow*) HashTable_GetItemValue(xfc->railWindows,
|
||||
(void*)(UINT_PTR) minMaxInfo->windowId);
|
||||
|
||||
if (!appWindow)
|
||||
return ERROR_INTERNAL_ERROR;
|
||||
if (appWindow)
|
||||
{
|
||||
xf_SetWindowMinMaxInfo(xfc, appWindow,
|
||||
minMaxInfo->maxWidth, minMaxInfo->maxHeight,
|
||||
minMaxInfo->maxPosX, minMaxInfo->maxPosY,
|
||||
minMaxInfo->minTrackWidth, minMaxInfo->minTrackHeight,
|
||||
minMaxInfo->maxTrackWidth, minMaxInfo->maxTrackHeight);
|
||||
}
|
||||
|
||||
xf_SetWindowMinMaxInfo(xfc, appWindow,
|
||||
minMaxInfo->maxWidth, minMaxInfo->maxHeight,
|
||||
minMaxInfo->maxPosX, minMaxInfo->maxPosY,
|
||||
minMaxInfo->minTrackWidth, minMaxInfo->minTrackHeight,
|
||||
minMaxInfo->maxTrackWidth, minMaxInfo->maxTrackHeight);
|
||||
return CHANNEL_RC_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user