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
da8fd052
Commit
da8fd052
authored
Aug 02, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/tests: Test that different IFileDialogCustomize IIDs return same pointer.
parent
91b9ce69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
itemdlg.c
dlls/comdlg32/tests/itemdlg.c
+10
-8
No files found.
dlls/comdlg32/tests/itemdlg.c
View file @
da8fd052
...
...
@@ -322,7 +322,7 @@ static BOOL test_instantiation(void)
IFileSaveDialog
*
pfsd
;
IServiceProvider
*
psp
;
IOleWindow
*
pow
;
IUnknown
*
punk
;
IUnknown
*
punk
,
*
unk2
;
HRESULT
hr
;
LONG
ref
;
...
...
@@ -331,7 +331,7 @@ static BOOL test_instantiation(void)
&
IID_IFileOpenDialog
,
(
void
**
)
&
pfod
);
if
(
FAILED
(
hr
))
{
skip
(
"Could not instantiate the FileOpenDialog.
\n
"
);
win_
skip
(
"Could not instantiate the FileOpenDialog.
\n
"
);
return
FALSE
;
}
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
...
...
@@ -342,11 +342,12 @@ static BOOL test_instantiation(void)
hr
=
IFileOpenDialog_QueryInterface
(
pfod
,
&
IID_IFileDialogCustomize
,
(
void
**
)
&
punk
);
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
hr
=
IFileOpenDialog_QueryInterface
(
pfod
,
&
IID_IFileDialogCustomizeAlt
,
(
void
**
)
&
punk
);
hr
=
IFileOpenDialog_QueryInterface
(
pfod
,
&
IID_IFileDialogCustomizeAlt
,
(
void
**
)
&
unk2
);
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
ok
(
punk
==
unk2
,
"got %p, %p
\n
"
,
punk
,
unk2
);
IUnknown_Release
(
punk
);
IUnknown_Release
(
unk2
);
hr
=
IFileOpenDialog_QueryInterface
(
pfod
,
&
IID_IFileSaveDialog
,
(
void
**
)
&
pfsd
);
ok
(
hr
==
E_NOINTERFACE
,
"got 0x%08x.
\n
"
,
hr
);
...
...
@@ -448,11 +449,12 @@ static BOOL test_instantiation(void)
hr
=
IFileSaveDialog_QueryInterface
(
pfsd
,
&
IID_IFileDialogCustomize
,
(
void
**
)
&
punk
);
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
hr
=
IFileSaveDialog_QueryInterface
(
pfsd
,
&
IID_IFileDialogCustomizeAlt
,
(
void
**
)
&
punk
);
hr
=
IFileSaveDialog_QueryInterface
(
pfsd
,
&
IID_IFileDialogCustomizeAlt
,
(
void
**
)
&
unk2
);
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
ok
(
punk
==
unk2
,
"got %p, %p
\n
"
,
punk
,
unk2
);
IUnknown_Release
(
punk
);
IUnknown_Release
(
unk2
);
hr
=
IFileSaveDialog_QueryInterface
(
pfsd
,
&
IID_IFileOpenDialog
,
(
void
**
)
&
pfod
);
ok
(
hr
==
E_NOINTERFACE
,
"got 0x%08x.
\n
"
,
hr
);
...
...
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