mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 16:36:11 +00:00
Fixup ReleaseDC and add information.
svn path=/trunk/; revision=25192
This commit is contained in:
parent
ad4bf983da
commit
1d4927a407
|
@ -72,6 +72,8 @@ GetWindowDC(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BOOL STDCALL GdiReleaseDC(HDC hdc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
|
@ -81,6 +83,14 @@ ReleaseDC(
|
||||||
HWND hWnd,
|
HWND hWnd,
|
||||||
HDC hDC)
|
HDC hDC)
|
||||||
{
|
{
|
||||||
|
// From msdn: if the DC was not released return zero.
|
||||||
|
// if the DC was released return one.
|
||||||
|
|
||||||
|
if (!hDC) return FALSE; // Null hDC return zero.
|
||||||
|
|
||||||
|
GdiReleaseDC ( hDC ); // Release locals.
|
||||||
|
// Win 3.1 throw back, hWnd should be ignored and not used.
|
||||||
|
// Replace with NtUserCallOneParam ((DWORD) hDC, ONEPARAM_ROUTINE_RELEASEDC);
|
||||||
return NtUserReleaseDC(hWnd, hDC);
|
return NtUserReleaseDC(hWnd, hDC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue