comctl32: Propagate the return value of WM_ERASEBKGND.
Huw Davies
huw at codeweavers.com
Wed Jul 9 02:46:57 CDT 2014
---
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;
}
--
1.8.0
More information about the wine-patches
mailing list