ScrollDC From my notes 08/16/2003:

- Wine testing was not enough. If dx & dy are zero and hrgn and lprc are used or not zero. The Rect for hrgn and lprc are set zero w/o NtUserScrollDC being called. It just returns TRUE.
- If HDC is zero it will return FALSE and not call NtUserScrollDC.

svn path=/trunk/; revision=29893
This commit is contained in:
James Tabor 2007-10-26 02:07:33 +00:00
parent 5d397e4214
commit e40b261ed9

View file

@ -185,6 +185,16 @@ BOOL STDCALL
ScrollDC(HDC hDC, int dx, int dy, CONST RECT *lprcScroll, CONST RECT *lprcClip,
HRGN hrgnUpdate, LPRECT lprcUpdate)
{
if (hDC == NULL) return FALSE;
if (dx == 0 && dy == 0)
{
if (hrgnUpdate) SetRectRgn(hrgnUpdate, 0, 0, 0, 0);
if (lprcUpdate) lprcUpdate->left = lprcUpdate->right =
lprcUpdate->top = lprcUpdate->bottom = 0;
return TRUE;
}
return NtUserScrollDC(hDC, dx, dy, lprcScroll, lprcClip, hrgnUpdate,
lprcUpdate);
}