Author: cwittich
Date: Tue Jan 27 10:01:47 2009
New Revision: 39135
URL:
http://svn.reactos.org/svn/reactos?rev=39135&view=rev
Log:
-don't delete a DC return from BeginPaint
-DPRINT1 -> DPRINT
Modified:
trunk/reactos/dll/win32/shimgvw/shimgvw.c
Modified: trunk/reactos/dll/win32/shimgvw/shimgvw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shimgvw/shimgvw.…
==============================================================================
--- trunk/reactos/dll/win32/shimgvw/shimgvw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shimgvw/shimgvw.c [iso-8859-1] Tue Jan 27 10:01:47 2009
@@ -72,7 +72,6 @@
if (!graphics)
{
DPRINT1("GdipCreateFromHDC() failed\n");
- DeleteDC(hdc);
return;
}
@@ -80,7 +79,6 @@
if (!image)
{
DPRINT1("GdipLoadImageFromFile() failed\n");
- DeleteDC(hdc);
return;
}
@@ -151,11 +149,10 @@
}
}
- DPRINT1("x = %d\ny = %d\nWidth = %d\nHeight = %d\n\nrect.right =
%d\nrect.bottom = %d\n\nuImgWidth = %d\nuImgHeight = %d", x, y, width, height,
rect.right, rect.bottom, uImgWidth, uImgHeight);
+ DPRINT("x = %d\ny = %d\nWidth = %d\nHeight = %d\n\nrect.right =
%d\nrect.bottom = %d\n\nuImgWidth = %d\nuImgHeight = %d\n", x, y, width, height,
rect.right, rect.bottom, uImgWidth, uImgHeight);
GdipDrawImageRect(graphics, image, x, y, width, height);
}
- DeleteDC(hdc);
EndPaint(hwnd, &ps);
}