Huw Davies : comctl32: Propagate the return value of WM_ERASEBKGND.
Module: wine Branch: master Commit: 552ad2d93e9a457855d6281c97bba213c885e66c URL: http://source.winehq.org/git/wine.git/?a=commit;h=552ad2d93e9a457855d6281c97... Author: Huw Davies <huw(a)codeweavers.com> Date: Wed Jul 9 08:46:57 2014 +0100 comctl32: Propagate the return value of WM_ERASEBKGND. --- dlls/comctl32/pager.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/pager.c b/dlls/comctl32/pager.c index 3b2c11c..74bca5e 100644 --- a/dlls/comctl32/pager.c +++ b/dlls/comctl32/pager.c @@ -985,16 +985,17 @@ PAGER_EraseBackground (const PAGER_INFO* infoPtr, HDC hdc) { POINT pt, ptorig; HWND parent; + LRESULT ret; pt.x = 0; pt.y = 0; parent = GetParent(infoPtr->hwndSelf); MapWindowPoints(infoPtr->hwndSelf, parent, &pt, 1); OffsetWindowOrgEx (hdc, pt.x, pt.y, &ptorig); - SendMessageW (parent, WM_ERASEBKGND, (WPARAM)hdc, 0); + ret = SendMessageW (parent, WM_ERASEBKGND, (WPARAM)hdc, 0); SetWindowOrgEx (hdc, ptorig.x, ptorig.y, 0); - return 0; + return ret; }
participants (1)
-
Alexandre Julliard