mirror of
https://github.com/reactos/reactos.git
synced 2024-07-30 16:18:43 +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
|
HDC STDCALL
|
||||||
NtUserGetDC(HWND hWnd)
|
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
|
PDCE FASTCALL
|
||||||
|
|
Loading…
Reference in a new issue