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
855d7b0f
Commit
855d7b0f
authored
Apr 01, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Add some traces for custom Places (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d63e560e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
filedlg.c
dlls/comdlg32/filedlg.c
+9
-2
No files found.
dlls/comdlg32/filedlg.c
View file @
855d7b0f
...
...
@@ -312,14 +312,21 @@ static void filedlg_collect_places_pidls(FileOpenDlgInfos *fodInfos)
static
const
WCHAR
placeW
[]
=
{
'P'
,
'l'
,
'a'
,
'c'
,
'e'
,
'%'
,
'd'
,
0
};
WCHAR
nameW
[
8
];
DWORD
value
;
HRESULT
hr
;
WCHAR
*
str
;
sprintfW
(
nameW
,
placeW
,
i
);
if
(
get_config_key_dword
(
hkey
,
nameW
,
&
value
))
SHGetSpecialFolderLocation
(
NULL
,
value
,
&
fodInfos
->
places
[
i
]);
{
hr
=
SHGetSpecialFolderLocation
(
NULL
,
value
,
&
fodInfos
->
places
[
i
]);
if
(
FAILED
(
hr
))
WARN
(
"Unrecognized special folder %u.
\n
"
,
value
);
}
else
if
(
get_config_key_string
(
hkey
,
nameW
,
&
str
))
{
SHParseDisplayName
(
str
,
NULL
,
&
fodInfos
->
places
[
i
],
0
,
NULL
);
hr
=
SHParseDisplayName
(
str
,
NULL
,
&
fodInfos
->
places
[
i
],
0
,
NULL
);
if
(
FAILED
(
hr
))
WARN
(
"Failed to parse custom places location, %s.
\n
"
,
debugstr_w
(
str
));
heap_free
(
str
);
}
}
...
...
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