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
48e6f8f9
Commit
48e6f8f9
authored
Feb 06, 2019
by
Sven Baars
Committed by
Alexandre Julliard
Feb 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Don't return a path from SHGetKnownFolderPath when it can not be created.
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
23f97773
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
shellpath.c
dlls/shell32/shellpath.c
+1
-1
shellpath.c
dlls/shell32/tests/shellpath.c
+3
-0
No files found.
dlls/shell32/shellpath.c
View file @
48e6f8f9
...
...
@@ -4970,7 +4970,7 @@ HRESULT WINAPI SHGetKnownFolderPath(REFKNOWNFOLDERID rfid, DWORD flags, HANDLE t
if
(
!
(
flags
&
KF_FLAG_CREATE
))
{
hr
=
HRESULT_FROM_WIN32
(
ERROR_PATH_NOT_FOUND
);
goto
done
;
goto
failed
;
}
/* create directory/directories */
...
...
dlls/shell32/tests/shellpath.c
View file @
48e6f8f9
...
...
@@ -1875,7 +1875,10 @@ if (0) { /* crashes */
path
=
NULL
;
hr
=
pSHGetKnownFolderPath
(
folder_id
,
KF_FLAG_DEFAULT
,
NULL
,
&
path
);
if
(
FAILED
(
hr
))
{
ok
(
path
==
NULL
,
"expected path == NULL
\n
"
);
continue
;
}
ok
(
hr
==
S_OK
,
"expected S_OK, got 0x%08x
\n
"
,
hr
);
ok
(
path
!=
NULL
,
"expected path != NULL
\n
"
);
...
...
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