mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 12:18:13 +00:00
Fixed NtGdiCreateCompatableDC()
svn path=/trunk/; revision=5918
This commit is contained in:
parent
b4b3b303fe
commit
5db07c0a15
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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
|
* DC.C - Device context functions
|
||||||
*
|
*
|
||||||
|
@ -143,14 +143,11 @@ NtGdiCreateCompatableDC(HDC hDC)
|
||||||
hNewDC = DC_AllocDC(OrigDC->DriverName);
|
hNewDC = DC_AllocDC(OrigDC->DriverName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NewDC == NULL)
|
if (NULL == hNewDC)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
NewDC = DC_LockDc( hNewDC );
|
NewDC = DC_LockDc( hNewDC );
|
||||||
}
|
|
||||||
|
|
||||||
/* Copy information from original DC to new DC */
|
/* Copy information from original DC to new DC */
|
||||||
NewDC->hSelf = NewDC;
|
NewDC->hSelf = NewDC;
|
||||||
|
|
Loading…
Reference in a new issue