From 6dcfc95671c4adc574b80a50f9b90cbae5364cee Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 21 Oct 2008 15:28:23 +0200 Subject: [PATCH] mountmgr: Convert the registry calls to Unicode. --- dlls/mountmgr.sys/device.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c index 2c2b6c1a5de..4328de4d70e 100644 --- a/dlls/mountmgr.sys/device.c +++ b/dlls/mountmgr.sys/device.c @@ -52,6 +52,9 @@ static const WCHAR drive_types[][8] = {'r','a','m','d','i','s','k',0} /* DRIVE_RAMDISK */ }; +static const WCHAR drives_keyW[] = {'S','o','f','t','w','a','r','e','\\', + 'W','i','n','e','\\','D','r','i','v','e','s',0}; + struct dos_drive { struct list entry; /* entry in drives list */ @@ -421,7 +424,7 @@ found: wine_dbgstr_a(mount_point), type ); /* hack: force the drive type in the registry */ - if (!RegCreateKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Drives", &hkey )) + if (!RegCreateKeyW( HKEY_LOCAL_MACHINE, drives_keyW, &hkey )) { const WCHAR *type_name = drive_types[type]; WCHAR name[3] = {'a',':',0}; @@ -454,7 +457,7 @@ BOOL remove_dos_device( const char *udi ) BOOL modified = set_unix_mount_point( drive, NULL ); /* clear the registry key too */ - if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Drives", &hkey )) + if (!RegOpenKeyW( HKEY_LOCAL_MACHINE, drives_keyW, &hkey )) { WCHAR name[3] = {'a',':',0}; name[0] += drive->drive; -- 2.11.4.GIT