Alexandre Julliard : explorer: Store the graphics driver basename instead of the full path.

Alexandre Julliard julliard at winehq.org
Mon Mar 29 16:00:04 CDT 2021


Module: wine
Branch: master
Commit: d47be63faec9670454b137fa8d8de5f732e76202
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d47be63faec9670454b137fa8d8de5f732e76202

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Mar 29 16:00:58 2021 +0200

explorer: Store the graphics driver basename instead of the full path.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/explorer/desktop.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c
index f525c23d819..94d178880a8 100644
--- a/programs/explorer/desktop.c
+++ b/programs/explorer/desktop.c
@@ -857,11 +857,7 @@ static HMODULE load_graphics_driver( const WCHAR *driver, const GUID *guid )
         name = next;
     }
 
-    if (module)
-    {
-        GetModuleFileNameW( module, buffer, MAX_PATH );
-        TRACE( "display %s driver %s\n", debugstr_guid(guid), debugstr_w(buffer) );
-    }
+    TRACE( "display %s driver %s\n", debugstr_guid(guid), debugstr_w(libname) );
 
     swprintf( key, ARRAY_SIZE(key), device_keyW, guid->Data1, guid->Data2, guid->Data3,
               guid->Data4[0], guid->Data4[1], guid->Data4[2], guid->Data4[3],
@@ -872,7 +868,7 @@ static HMODULE load_graphics_driver( const WCHAR *driver, const GUID *guid )
     {
         if (module || null_driver)
             RegSetValueExW( hkey, graphics_driverW, 0, REG_SZ,
-                            (BYTE *)buffer, (lstrlenW(buffer) + 1) * sizeof(WCHAR) );
+                            (BYTE *)libname, (lstrlenW(libname) + 1) * sizeof(WCHAR) );
         else
             RegSetValueExA( hkey, "DriverError", 0, REG_SZ, (BYTE *)error, strlen(error) + 1 );
         RegCloseKey( hkey );




More information about the wine-cvs mailing list