[WIN32SS] Add extra logging to failed SURFACE_AllocSurface calls. CORE-13036
authorMark Jansen <mark.jansen@reactos.org>
Mon, 17 Apr 2017 15:48:56 +0000 (15:48 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Mon, 17 Apr 2017 15:48:56 +0000 (15:48 +0000)
svn path=/trunk/; revision=74352

reactos/win32ss/gdi/eng/surface.c

index b2d2883..9bce837 100644 (file)
@@ -324,7 +324,8 @@ EngCreateBitmap(
                                  pvBits);
     if (!psurf)
     {
-        DPRINT1("SURFACE_AllocSurface failed.\n");
+        DPRINT1("SURFACE_AllocSurface failed. (STYPE_BITMAP, sizl.cx=%ld, sizl.cy=%ld, iFormat=%lu, fl=%lu, lWidth=%ld, pvBits=0x%p)\n",
+                sizl.cx, sizl.cy, iFormat, fl, lWidth, pvBits);
         return NULL;
     }
 
@@ -363,7 +364,8 @@ EngCreateDeviceBitmap(
                                  NULL);
     if (!psurf)
     {
-        DPRINT1("SURFACE_AllocSurface failed.\n");
+        DPRINT1("SURFACE_AllocSurface failed. (STYPE_DEVBITMAP, sizl.cx=%ld, sizl.cy=%ld, iFormat=%lu)\n",
+                sizl.cx, sizl.cy, iFormat);
         return NULL;
     }
 
@@ -402,7 +404,8 @@ EngCreateDeviceSurface(
                                  NULL);
     if (!psurf)
     {
-        DPRINT1("SURFACE_AllocSurface failed.\n");
+        DPRINT1("SURFACE_AllocSurface failed. (STYPE_DEVICE, sizl.cx=%ld, sizl.cy=%ld, iFormat=%lu)\n",
+                sizl.cx, sizl.cy, iFormat);
         return NULL;
     }