Fixup ReleaseDC and add information.

svn path=/trunk/; revision=25192
This commit is contained in:
James Tabor 2006-12-19 18:29:57 +00:00
parent ad4bf983da
commit 1d4927a407

View file

@ -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);
} }