mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 07:05:12 +00:00
Fix one wine test, from 75 to 23 no.
svn path=/trunk/; revision=31031
This commit is contained in:
parent
6dea234022
commit
291c2b99ef
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue