Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6dcfc956
Commit
6dcfc956
authored
Oct 21, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Convert the registry calls to Unicode.
parent
e6a47f1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
device.c
dlls/mountmgr.sys/device.c
+5
-2
No files found.
dlls/mountmgr.sys/device.c
View file @
6dcfc956
...
...
@@ -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
(
!
RegCreateKey
A
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
Drives"
,
&
hkey
))
if
(
!
RegCreateKey
W
(
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
(
!
RegOpenKey
A
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
Drives"
,
&
hkey
))
if
(
!
RegOpenKey
W
(
HKEY_LOCAL_MACHINE
,
drives_keyW
,
&
hkey
))
{
WCHAR
name
[
3
]
=
{
'a'
,
':'
,
0
};
name
[
0
]
+=
drive
->
drive
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment