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
1a047044
Commit
1a047044
authored
Sep 09, 2020
by
Alex Henrie
Committed by
Alexandre Julliard
Sep 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Fix error precedence in IFileDialog2_SetFileTypes.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c409ab62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
itemdlg.c
dlls/comdlg32/itemdlg.c
+3
-3
itemdlg.c
dlls/comdlg32/tests/itemdlg.c
+2
-0
No files found.
dlls/comdlg32/itemdlg.c
View file @
1a047044
...
...
@@ -2402,12 +2402,12 @@ static HRESULT WINAPI IFileDialog2_fnSetFileTypes(IFileDialog2 *iface, UINT cFil
UINT
i
;
TRACE
(
"%p (%d, %p)
\n
"
,
This
,
cFileTypes
,
rgFilterSpec
);
if
(
This
->
filterspecs
)
return
E_UNEXPECTED
;
if
(
!
rgFilterSpec
)
return
E_INVALIDARG
;
if
(
This
->
filterspecs
)
return
E_UNEXPECTED
;
if
(
!
cFileTypes
)
return
S_OK
;
...
...
dlls/comdlg32/tests/itemdlg.c
View file @
1a047044
...
...
@@ -675,6 +675,8 @@ static void test_basics(void)
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
hr
=
IFileOpenDialog_SetFileTypes
(
pfod
,
0
,
filterspec
);
ok
(
hr
==
E_UNEXPECTED
,
"got 0x%08x.
\n
"
,
hr
);
hr
=
IFileOpenDialog_SetFileTypes
(
pfod
,
0
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"got 0x%08x.
\n
"
,
hr
);
hr
=
IFileOpenDialog_SetFileTypeIndex
(
pfod
,
0
);
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
hr
=
IFileOpenDialog_GetFileTypeIndex
(
pfod
,
&
filetype
);
...
...
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