fast bugfix, NtGdiExtEscape should accpect a NULL hdc.

svn path=/trunk/; revision=28739
This commit is contained in:
Magnus Olsen 2007-09-01 13:05:33 +00:00
parent 01758ff86f
commit 14d7a9c6ea

View file

@ -156,12 +156,18 @@ NtGdiExtEscape(
INT OutSize,
OPTIONAL LPSTR UnsafeOutData)
{
PDC pDC = DC_LockDc(hDC);
PDC pDC;
LPVOID SafeInData = NULL;
LPVOID SafeOutData = NULL;
NTSTATUS Status = STATUS_SUCCESS;
INT Result;
if (hDC == 0)
{
hDC = (HDC)UserGetWindowDC(NULL);
}
pDC = DC_LockDc(hDC);
if ( pDC == NULL )
{
SetLastWin32Error(ERROR_INVALID_HANDLE);