mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 02:20:54 +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,
|
INT OutSize,
|
||||||
OPTIONAL LPSTR UnsafeOutData)
|
OPTIONAL LPSTR UnsafeOutData)
|
||||||
{
|
{
|
||||||
PDC pDC = DC_LockDc(hDC);
|
PDC pDC;
|
||||||
LPVOID SafeInData = NULL;
|
LPVOID SafeInData = NULL;
|
||||||
LPVOID SafeOutData = NULL;
|
LPVOID SafeOutData = NULL;
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
INT Result;
|
INT Result;
|
||||||
|
|
||||||
|
if (hDC == 0)
|
||||||
|
{
|
||||||
|
hDC = (HDC)UserGetWindowDC(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
pDC = DC_LockDc(hDC);
|
||||||
if ( pDC == NULL )
|
if ( pDC == NULL )
|
||||||
{
|
{
|
||||||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
|
|
Loading…
Reference in a new issue