[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.
This commit is contained in:
Katayama Hirofumi MZ 2024-07-07 06:48:36 +09:00 committed by GitHub
parent 42780b19c1
commit 0cfd7bde9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);