From 0cfd7bde9b2d10f63cb217ef06484e32270fcdc8 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Sun, 7 Jul 2024 06:48:36 +0900 Subject: [PATCH] [USER32] TileWindows: Adjust timeout of QuerySizeFix (#7081) Since my machine performance became lower, we have to adjust timeout to get correct pattern of user32!TileWindows function. JIRA issue: CORE-19674 Adjust timeout value in QuerySizeFix function. --- win32ss/user/user32/windows/mdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32ss/user/user32/windows/mdi.c b/win32ss/user/user32/windows/mdi.c index 55bac41aa57..af98ba8f911 100644 --- a/win32ss/user/user32/windows/mdi.c +++ b/win32ss/user/user32/windows/mdi.c @@ -2053,7 +2053,7 @@ QuerySizeFix(HWND hwnd, LPINT pcx, LPINT pcy) mmi.ptMinTrackSize.x = mmi.ptMinTrackSize.y = 0; mmi.ptMaxTrackSize.x = mmi.ptMaxTrackSize.y = MAXLONG; if (SendMessageTimeoutW(hwnd, WM_GETMINMAXINFO, 0, (LPARAM)&mmi, - SMTO_ABORTIFHUNG | SMTO_NORMAL, 120, &dwResult)) + SMTO_ABORTIFHUNG | SMTO_NORMAL, 1000, &dwResult)) { *pcx = min(max(*pcx, mmi.ptMinTrackSize.x), mmi.ptMaxTrackSize.x); *pcy = min(max(*pcy, mmi.ptMinTrackSize.y), mmi.ptMaxTrackSize.y);