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

oldstable
Robert Shearman 2005-10-29 10:29:56 +00:00 committed by Alexandre Julliard
parent eb2924dba6
commit e31f610bdb
1 changed files with 5 additions and 1 deletions

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