mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 12:18:13 +00:00
Why are we deleting prgnVis after setting it up? Wine code shows that it is deleted after an error if it was setup prior the error. This fixes a bug introduced in revision 5118.
svn path=/trunk/; revision=33719
This commit is contained in:
parent
2cb33838e4
commit
4204cdca6e
|
@ -1,4 +1,3 @@
|
|||
|
||||
/*
|
||||
* ReactOS W32 Subsystem
|
||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team
|
||||
|
@ -152,13 +151,12 @@ NtGdiCreateCompatibleDC(HDC hDC)
|
|||
DC_UnlockDc(NewDC);
|
||||
DC_UnlockDc(OrigDC);
|
||||
if (NULL != DisplayDC)
|
||||
{
|
||||
NtGdiDeleteObjectApp(DisplayDC);
|
||||
}
|
||||
{
|
||||
NtGdiDeleteObjectApp(DisplayDC);
|
||||
}
|
||||
|
||||
hVisRgn = NtGdiCreateRectRgn(0, 0, 1, 1);
|
||||
IntGdiSelectVisRgn(hNewDC, hVisRgn);
|
||||
NtGdiDeleteObject(hVisRgn);
|
||||
if (Layout) NtGdiSetLayout( hNewDC, -1, Layout);
|
||||
|
||||
DC_InitDC(hNewDC);
|
||||
|
|
Loading…
Reference in a new issue