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
0bfb97dc
Commit
0bfb97dc
authored
Feb 08, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Pass correct buffer length to RegQueryValueExW().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
703e8209
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
shellpath.c
dlls/shell32/shellpath.c
+2
-1
No files found.
dlls/shell32/shellpath.c
View file @
0bfb97dc
...
...
@@ -3209,8 +3209,8 @@ static HRESULT _SHGetUserShellFolderPath(HKEY rootKey, LPCWSTR userPrefix,
HRESULT
hr
;
WCHAR
shellFolderPath
[
MAX_PATH
],
userShellFolderPath
[
MAX_PATH
];
LPCWSTR
pShellFolderPath
,
pUserShellFolderPath
;
DWORD
dwType
,
dwPathLen
=
MAX_PATH
;
HKEY
userShellFolderKey
,
shellFolderKey
;
DWORD
dwType
,
dwPathLen
;
TRACE
(
"%p,%s,%s,%p
\n
"
,
rootKey
,
debugstr_w
(
userPrefix
),
debugstr_w
(
value
),
path
);
...
...
@@ -3245,6 +3245,7 @@ static HRESULT _SHGetUserShellFolderPath(HKEY rootKey, LPCWSTR userPrefix,
return
E_FAIL
;
}
dwPathLen
=
MAX_PATH
*
sizeof
(
WCHAR
);
if
(
!
RegQueryValueExW
(
userShellFolderKey
,
value
,
NULL
,
&
dwType
,
(
LPBYTE
)
path
,
&
dwPathLen
)
&&
(
dwType
==
REG_EXPAND_SZ
||
dwType
==
REG_SZ
))
{
...
...
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