(Nt)UserGetWindowDC returns a HDC, not a DWORD

svn path=/trunk/; revision=33341
This commit is contained in:
Timo Kreuzer 2008-05-07 14:11:01 +00:00
parent 2bf0d241a9
commit 9c10e57cee
6 changed files with 10 additions and 10 deletions

View file

@ -1485,7 +1485,7 @@ NtUserGetUpdateRgn(
HRGN hRgn,
BOOL bErase);
DWORD
HDC
NTAPI
NtUserGetWindowDC(
HWND hWnd);

View file

@ -67,7 +67,7 @@ UserReleaseDC(PWINDOW_OBJECT Window, HDC hDc, BOOL EndPaint);
HDC FASTCALL
UserGetDCEx(PWINDOW_OBJECT Window OPTIONAL, HANDLE ClipRegion, ULONG Flags);
DWORD FASTCALL
HDC FASTCALL
UserGetWindowDC(PWINDOW_OBJECT Wnd);

View file

@ -837,10 +837,10 @@ UserReleaseDC(PWINDOW_OBJECT Window, HDC hDc, BOOL EndPaint)
return nRet;
}
DWORD FASTCALL
HDC FASTCALL
UserGetWindowDC(PWINDOW_OBJECT Wnd)
{
return (DWORD)UserGetDCEx(Wnd, 0, DCX_USESTYLE | DCX_WINDOW);
return UserGetDCEx(Wnd, 0, DCX_USESTYLE | DCX_WINDOW);
}
HDC STDCALL
@ -877,10 +877,10 @@ CLEANUP:
* Status
* @implemented
*/
DWORD STDCALL
HDC STDCALL
NtUserGetWindowDC(HWND hWnd)
{
return (DWORD)NtUserGetDCEx(hWnd, 0, DCX_USESTYLE | DCX_WINDOW);
return NtUserGetDCEx(hWnd, 0, DCX_USESTYLE | DCX_WINDOW);
}
HDC STDCALL

View file

@ -118,7 +118,7 @@ IntAnimatePalette(HPALETTE hPal,
/* Immediately apply the new palette if current window uses it */
Wnd = UserGetDesktopWindow();
hDC = (HDC)UserGetWindowDC(Wnd);
hDC = UserGetWindowDC(Wnd);
dc = DC_LockDc(hDC);
if (NULL != dc)
{

View file

@ -2796,7 +2796,7 @@ GetDisplayNumberFromDeviceName(
PDC pDC;
DesktopObject = UserGetDesktopWindow();
DesktopHDC = (HDC)UserGetWindowDC(DesktopObject);
DesktopHDC = UserGetWindowDC(DesktopObject);
pDC = DC_LockDc(DesktopHDC);
*DisplayNumber = ((GDIDEVICE *)pDC->pPDev)->DisplayNumber;
@ -3320,7 +3320,7 @@ IntChangeDisplaySettings(
return FALSE;
}
hDC = (HDC)UserGetWindowDC(Wnd);
hDC = UserGetWindowDC(Wnd);
DC = DC_LockDc(hDC);
if (NULL == DC)

View file

@ -164,7 +164,7 @@ NtGdiExtEscape(
if (hDC == 0)
{
hDC = (HDC)UserGetWindowDC(NULL);
hDC = UserGetWindowDC(NULL);
}
pDC = DC_LockDc(hDC);