From 7a5cfecf025573ce12faaa25eacbcec499771b1f Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Mon, 17 Apr 2017 15:48:56 +0000 Subject: [PATCH] [WIN32SS] Add extra logging to failed SURFACE_AllocSurface calls. CORE-13036 svn path=/trunk/; revision=74352 --- reactos/win32ss/gdi/eng/surface.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/reactos/win32ss/gdi/eng/surface.c b/reactos/win32ss/gdi/eng/surface.c index b2d288363a2..9bce8373692 100644 --- a/reactos/win32ss/gdi/eng/surface.c +++ b/reactos/win32ss/gdi/eng/surface.c @@ -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; }