Print an error if a DC is created with a bad device.

This commit is contained in:
Robert Shearman 2005-10-29 10:29:56 +00:00 committed by Alexandre Julliard
parent eb2924dba6
commit e31f610bdb

View File

@ -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);
}