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
177c2a27
Commit
177c2a27
authored
Aug 25, 2008
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Aug 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Fix parameters for RegQueryValueExW to read the default value.
parent
52a406f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
url.c
dlls/shlwapi/url.c
+5
-7
No files found.
dlls/shlwapi/url.c
View file @
177c2a27
...
...
@@ -1586,7 +1586,7 @@ static HRESULT URL_ApplyDefault(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut)
{
HKEY
newkey
;
DWORD
data_len
,
dwType
;
WCHAR
value
[
MAX_PATH
],
data
[
MAX_PATH
];
WCHAR
data
[
MAX_PATH
];
static
const
WCHAR
prefix_keyW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
...
...
@@ -1598,14 +1598,12 @@ static HRESULT URL_ApplyDefault(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut)
/* get and prepend default */
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
prefix_keyW
,
0
,
1
,
&
newkey
);
data_len
=
MAX_PATH
;
value
[
0
]
=
'@'
;
value
[
1
]
=
'\0'
;
RegQueryValueExW
(
newkey
,
value
,
0
,
&
dwType
,
(
LPBYTE
)
data
,
&
data_len
);
data_len
=
sizeof
(
data
);
RegQueryValueExW
(
newkey
,
NULL
,
0
,
&
dwType
,
(
LPBYTE
)
data
,
&
data_len
);
RegCloseKey
(
newkey
);
if
(
strlenW
(
data
)
+
strlenW
(
pszIn
)
+
1
>
*
pcchOut
)
{
*
pcchOut
=
strlenW
(
data
)
+
strlenW
(
pszIn
)
+
1
;
return
E_POINTER
;
*
pcchOut
=
strlenW
(
data
)
+
strlenW
(
pszIn
)
+
1
;
return
E_POINTER
;
}
strcpyW
(
pszOut
,
data
);
strcatW
(
pszOut
,
pszIn
);
...
...
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