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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 20 06:17:53 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 9bf0080136425ca60d63cf06c518a13ece5ab89b
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=9bf0080136425ca60d63cf06c518a13ece5ab89b

Author: Vitaliy Margolen <wine-patch at kievinfo.com>
Date:   Sat Mar 18 11:20:03 2006 -0700

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

---

 dlls/gdi/driver.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi/driver.c b/dlls/gdi/driver.c
index c9ac552..9f40a8d 100644
--- a/dlls/gdi/driver.c
+++ b/dlls/gdi/driver.c
@@ -365,11 +365,13 @@ BOOL DRIVER_GetDriverName( LPCWSTR devic
 {
     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;




More information about the wine-cvs mailing list