Author: jgardou
Date: Sun Jul 22 21:19:02 2012
New Revision: 56942
URL:
http://svn.reactos.org/svn/reactos?rev=56942&view=rev
Log:
[WIN32SS/NTGDI]
- Don't assume DC surface in non NULL in NtGdiSetDIBitsToDeviceInternal
Modified:
trunk/reactos/win32ss/gdi/ntgdi/dc.h
trunk/reactos/win32ss/gdi/ntgdi/dibobj.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/dc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/dc.h?rev…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/dc.h [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/dc.h [iso-8859-1] Sun Jul 22 21:19:02 2012
@@ -260,5 +260,6 @@
}
extern PBRUSH pbrDefaultBrush ;
+extern PSURFACE psurfDefaultBitmap;
#endif /* not __WIN32K_DC_H */
Modified: trunk/reactos/win32ss/gdi/ntgdi/dibobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/dibobj.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/dibobj.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/dibobj.c [iso-8859-1] Sun Jul 22 21:19:02 2012
@@ -446,6 +446,7 @@
}
pSurf = pDC->dclevel.pSurface;
+ if(!pSurf) pSurf = psurfDefaultBitmap;
pDestSurf = pSurf ? &pSurf->SurfObj : NULL;