Commit 9bf00801 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

gdi: Handle NT style \\.\DISPLAY1 name that we return.

parent 9f487ba1
......@@ -365,11 +365,13 @@ BOOL DRIVER_GetDriverName( LPCWSTR device, LPWSTR driver, DWORD size )
{
static const WCHAR displayW[] = { 'd','i','s','p','l','a','y',0 };
static const WCHAR devicesW[] = { 'd','e','v','i','c','e','s',0 };
static const WCHAR display1W[] = {'\\','\\','.','\\','D','I','S','P','L','A','Y','1',0};
static const WCHAR empty_strW[] = { 0 };
WCHAR *p;
/* display is a special case */
if (!strcmpiW( device, displayW ))
if (!strcmpiW( device, displayW ) ||
!strcmpiW( device, display1W ))
{
lstrcpynW( driver, displayW, size );
return TRUE;
......
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