mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 13:03:47 +00:00
[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:
parent
42780b19c1
commit
0cfd7bde9b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue