comctl32/toolbar: Fix incorrect use of the ScreenToClient function.

oldstable
Alexandre Julliard 2010-10-05 14:04:08 +02:00
parent a37e5975dc
commit d8950a7ea6
1 changed files with 1 additions and 1 deletions

View File

@ -3049,7 +3049,7 @@ TOOLBAR_AutoSize (TOOLBAR_INFO *infoPtr)
if ((infoPtr->dwStyle & CCS_BOTTOM) == CCS_NOMOVEY)
{
GetWindowRect(infoPtr->hwndSelf, &window_rect);
ScreenToClient(parent, (LPPOINT)&window_rect.left);
MapWindowPoints( 0, parent, (POINT *)&window_rect, 2 );
y = window_rect.top;
}
if ((infoPtr->dwStyle & CCS_BOTTOM) == CCS_BOTTOM)