Fix one wine test, from 75 to 23 no.

svn path=/trunk/; revision=31031
This commit is contained in:
James Tabor 2007-12-05 22:30:44 +00:00
parent 6dea234022
commit 291c2b99ef

View file

@ -108,7 +108,17 @@ UserGetWindowDC(PWINDOW_OBJECT Wnd)
HDC STDCALL
NtUserGetDC(HWND hWnd)
{
return NtUserGetDCEx(hWnd, NULL, NULL == hWnd ? DCX_CACHE | DCX_WINDOW : DCX_USESTYLE);
if (!hWnd)
{ // MSDN:
//"hWnd [in] Handle to the window whose DC is to be retrieved.
// If this value is NULL, GetDC retrieves the DC for the entire screen."
hWnd = IntGetDesktopWindow();
if (hWnd)
return NtUserGetDCEx(hWnd, NULL, DCX_CACHE | DCX_WINDOW);
else
return NULL;
}
return NtUserGetDCEx(hWnd, NULL, DCX_USESTYLE);
}
PDCE FASTCALL