Author: greatlrd
Date: Tue Sep 25 20:49:13 2007
New Revision: 29202
URL: http://svn.reactos.org/svn/reactos?rev=29202&view=rev
Log:
Fix a stupied bug in DdAttachSurface when pSurfaceFrom->hDDSurface is NULL or pSurfaceTo->hDDSurface is null we need create them.
Modified:
trunk/reactos/dll/win32/gdi32/misc/gdientry.c
Modified: trunk/reactos/dll/win32/gdi32/misc/gdientry.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/gdien…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/gdientry.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/gdientry.c Tue Sep 25 20:49:13 2007
@@ -942,7 +942,7 @@
LPDDRAWI_DDRAWSURFACE_LCL pSurfaceTo)
{
/* Create Surface if it does not exits one */
- if (pSurfaceFrom->hDDSurface)
+ if (!pSurfaceFrom->hDDSurface)
{
if (!bDDCreateSurface(pSurfaceFrom, FALSE))
{
@@ -951,7 +951,7 @@
}
/* Create Surface if it does not exits one */
- if (pSurfaceTo->hDDSurface)
+ if (!pSurfaceTo->hDDSurface)
{
if (!bDDCreateSurface(pSurfaceTo, FALSE))
{