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
3c6cbc2f
Commit
3c6cbc2f
authored
Dec 14, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Don't access uninitialized buffer (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
333c5bd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
shellpath.c
dlls/shell32/shellpath.c
+8
-3
No files found.
dlls/shell32/shellpath.c
View file @
3c6cbc2f
...
...
@@ -4735,6 +4735,7 @@ HRESULT WINAPI SHGetKnownFolderPath(REFKNOWNFOLDERID rfid, DWORD flags, HANDLE t
hr
=
E_INVALIDARG
;
break
;
case
CSIDL_Type_NonExistent
:
*
tempW
=
0
;
hr
=
S_FALSE
;
break
;
case
CSIDL_Type_WindowsPath
:
...
...
@@ -4785,15 +4786,19 @@ HRESULT WINAPI SHGetKnownFolderPath(REFKNOWNFOLDERID rfid, DWORD flags, HANDLE t
break
;
}
if
(
FAILED
(
hr
))
goto
failed
;
/* Expand environment strings if necessary */
if
(
*
tempW
==
'%'
)
{
hr
=
_SHExpandEnvironmentStrings
(
tempW
,
pathW
);
if
(
FAILED
(
hr
))
goto
failed
;
}
else
strcpyW
(
pathW
,
tempW
);
if
(
FAILED
(
hr
))
goto
failed
;
/* if we don't care about existing directories we are ready */
if
(
flags
&
KF_FLAG_DONT_VERIFY
)
goto
done
;
...
...
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