Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a1f3af39
Commit
a1f3af39
authored
Feb 27, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Store rekistry key name in unicode to avoid conversion.
parent
66259555
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
url.c
dlls/shlwapi/url.c
+9
-5
No files found.
dlls/shlwapi/url.c
View file @
a1f3af39
...
...
@@ -1580,14 +1580,18 @@ static HRESULT URL_ApplyDefault(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut)
{
HKEY
newkey
;
DWORD
data_len
,
dwType
;
WCHAR
reg_path
[
MAX_PATH
];
WCHAR
value
[
MAX_PATH
],
data
[
MAX_PATH
];
static
const
WCHAR
prefix_keyW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'\\'
,
'U'
,
'R'
,
'L'
,
'\\'
,
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
'P'
,
'r'
,
'e'
,
'f'
,
'i'
,
'x'
,
0
};
/* get and prepend default */
MultiByteToWideChar
(
0
,
0
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
URL
\\
DefaultPrefix"
,
-
1
,
reg_path
,
MAX_PATH
);
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
reg_path
,
0
,
1
,
&
newkey
);
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
prefix_keyW
,
0
,
1
,
&
newkey
);
data_len
=
MAX_PATH
;
value
[
0
]
=
'@'
;
value
[
1
]
=
'\0'
;
...
...
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