Commit c684d8ef authored by Abey George's avatar Abey George Committed by Alexandre Julliard

Check new coordinates received in WM_NCCALCSIZE message.

parent 49936036
......@@ -2023,7 +2023,11 @@ LONG WINPOS_SendNCCalcSize( HWND hwnd, BOOL calcValidRect,
TRACE("%d,%d-%d,%d\n",
params.rgrc[0].left, params.rgrc[0].top,
params.rgrc[0].right, params.rgrc[0].bottom );
*newClientRect = params.rgrc[0];
/* If the application send back garbage, ignore it */
if (params.rgrc[0].left <= params.rgrc[0].right && params.rgrc[0].top <= params.rgrc[0].bottom)
*newClientRect = params.rgrc[0];
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment