Alexandre Julliard : mountmgr: Convert the registry calls to Unicode.
Alexandre Julliard
julliard at winehq.org
Wed Oct 22 07:59:50 CDT 2008
Module: wine
Branch: master
Commit: 6dcfc95671c4adc574b80a50f9b90cbae5364cee
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6dcfc95671c4adc574b80a50f9b90cbae5364cee
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Oct 21 15:28:23 2008 +0200
mountmgr: Convert the registry calls to Unicode.
---
dlls/mountmgr.sys/device.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c
index 2c2b6c1..4328de4 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;
More information about the wine-cvs
mailing list