Commit 280528a0 authored by Alexandre Julliard's avatar Alexandre Julliard

Added special case for "display" in DRIVER_GetDriverName so that

GetDC(NULL,"display") works.
parent c23f8578
......@@ -335,6 +335,14 @@ void DRIVER_release_driver( const DC_FUNCTIONS *funcs )
BOOL DRIVER_GetDriverName( LPCSTR device, LPSTR driver, DWORD size )
{
char *p;
/* display is a special case */
if (!strcasecmp( device, "display" ))
{
lstrcpynA( driver, "display", size );
return TRUE;
}
size = GetProfileStringA("devices", device, "", driver, size);
if(!size) {
WARN("Unable to find '%s' in [devices] section of win.ini\n", device);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment