mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
fast bugfix, NtGdiExtEscape should accpect a NULL hdc.
svn path=/trunk/; revision=28739
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user