mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Fixed NtGdiCreateCompatableDC()
svn path=/trunk/; revision=5918
This commit is contained in:
parent
b4b3b303fe
commit
5db07c0a15
1 changed files with 3 additions and 6 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: dc.c,v 1.76 2003/08/29 09:29:11 gvg Exp $
|
||||
/* $Id: dc.c,v 1.77 2003/08/29 12:28:24 gvg Exp $
|
||||
*
|
||||
* DC.C - Device context functions
|
||||
*
|
||||
|
@ -143,14 +143,11 @@ NtGdiCreateCompatableDC(HDC hDC)
|
|||
hNewDC = DC_AllocDC(OrigDC->DriverName);
|
||||
}
|
||||
|
||||
if (NewDC == NULL)
|
||||
if (NULL == hNewDC)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
NewDC = DC_LockDc( hNewDC );
|
||||
}
|
||||
NewDC = DC_LockDc( hNewDC );
|
||||
|
||||
/* Copy information from original DC to new DC */
|
||||
NewDC->hSelf = NewDC;
|
||||
|
|
Loading…
Reference in a new issue