Check new coordinates received in WM_NCCALCSIZE message.

This commit is contained in:
Abey George 1999-09-03 15:09:57 +00:00 committed by Alexandre Julliard
parent 49936036e6
commit c684d8ef6f
1 changed files with 5 additions and 1 deletions

View File

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