mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
Print an error if a DC is created with a bad device.
This commit is contained in:
parent
eb2924dba6
commit
e31f610bdb
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user