Added special case for "display" in DRIVER_GetDriverName so that

GetDC(NULL,"display") works.
This commit is contained in:
Alexandre Julliard 2003-06-23 20:51:41 +00:00
parent c23f8578c3
commit 280528a07e

View file

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