From e31f610bdbf5bd3f8b8f180d6431dbde39163b9f Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Sat, 29 Oct 2005 10:29:56 +0000 Subject: [PATCH] Print an error if a DC is created with a bad device. --- dlls/gdi/dc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/gdi/dc.c b/dlls/gdi/dc.c index 8168a13ff36..02f57f6355c 100644 --- a/dlls/gdi/dc.c +++ b/dlls/gdi/dc.c @@ -615,7 +615,11 @@ HDC WINAPI CreateDCW( LPCWSTR driver, LPCWSTR device, LPCWSTR output, if (!device || !DRIVER_GetDriverName( device, buf, 300 )) { - if (!driver) return 0; + if (!driver) + { + ERR( "no device found for %s\n", debugstr_w(device) ); + return 0; + } strcpyW(buf, driver); }