Alexandre Julliard : comctl32/toolbar: Fix incorrect use of the ScreenToClient function.
Alexandre Julliard
julliard at winehq.org
Tue Oct 5 12:03:11 CDT 2010
Module: wine
Branch: master
Commit: d8950a7ea633053e4e19a142de919fe9a9500a9f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d8950a7ea633053e4e19a142de919fe9a9500a9f
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Oct 5 14:04:08 2010 +0200
comctl32/toolbar: Fix incorrect use of the ScreenToClient function.
---
dlls/comctl32/toolbar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index 880477e..0b9dec2 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -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)
More information about the wine-cvs
mailing list