Order rectangle points to avoid CreateCompatibleBitmap failure because of negative size values

svn path=/trunk/; revision=40569
This commit is contained in:
Gregor Schneider 2009-04-18 11:07:58 +00:00
parent 6fe4f11391
commit b48f3e2f98

View file

@ -1630,6 +1630,7 @@ BOOL UserDrawCaption(
if (pWnd)
Wnd = pWnd->Wnd;
RECTL_vMakeWellOrdered(lpRc);
hMemBmp = NtGdiCreateCompatibleBitmap(hDc,
lpRc->right - lpRc->left,
lpRc->bottom - lpRc->top);