mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +00:00
fast bugfix, NtGdiExtEscape should accpect a NULL hdc.
svn path=/trunk/; revision=28739
This commit is contained in:
parent
01758ff86f
commit
14d7a9c6ea
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue