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
1868fe65
Commit
1868fe65
authored
Dec 16, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Dec 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/tests: Use win8 failure-code as default result.
parent
9d71d29f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
itemdlg.c
dlls/comdlg32/itemdlg.c
+1
-1
itemdlg.c
dlls/comdlg32/tests/itemdlg.c
+14
-5
No files found.
dlls/comdlg32/itemdlg.c
View file @
1868fe65
...
...
@@ -2729,7 +2729,7 @@ static HRESULT WINAPI IServiceProvider_fnQueryService(IServiceProvider *iface,
REFIID
riid
,
void
**
ppv
)
{
FileDialogImpl
*
This
=
impl_from_IServiceProvider
(
iface
);
HRESULT
hr
=
E_
FAI
L
;
HRESULT
hr
=
E_
NOTIMP
L
;
TRACE
(
"%p (%s, %s, %p)
\n
"
,
This
,
debugstr_guid
(
guidService
),
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
...
...
dlls/comdlg32/tests/itemdlg.c
View file @
1868fe65
...
...
@@ -277,17 +277,26 @@ static BOOL test_instantiation(void)
IExplorerBrowser
*
peb
;
IShellBrowser
*
psb
;
hr
=
IServiceProvider_QueryService
(
psp
,
&
SID_SExplorerBrowserFrame
,
&
IID_ICommDlgBrowser
,
(
void
**
)
&
punk
);
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
/* since win8, the result is E_NOTIMPL for all other services */
hr
=
IServiceProvider_QueryService
(
psp
,
&
SID_STopLevelBrowser
,
&
IID_IExplorerBrowser
,
(
void
**
)
&
peb
);
ok
(
hr
==
E_
FAIL
,
"got 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
E_
NOTIMPL
||
broken
(
hr
==
E_FAIL
),
"got 0x%08x (expected E_NOTIMPL)
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IExplorerBrowser_Release
(
peb
);
hr
=
IServiceProvider_QueryService
(
psp
,
&
SID_STopLevelBrowser
,
&
IID_IShellBrowser
,
(
void
**
)
&
psb
);
ok
(
hr
==
E_
FAIL
,
"got 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
E_
NOTIMPL
||
broken
(
hr
==
E_FAIL
),
"got 0x%08x (expected E_NOTIMPL)
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IShellBrowser_Release
(
psb
);
hr
=
IServiceProvider_QueryService
(
psp
,
&
SID_STopLevelBrowser
,
&
IID_ICommDlgBrowser
,
(
void
**
)
&
punk
);
ok
(
hr
==
E_
FAIL
,
"got 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
E_
NOTIMPL
||
broken
(
hr
==
E_FAIL
),
"got 0x%08x (expected E_NOTIMPL)
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
hr
=
IServiceProvider_QueryService
(
psp
,
&
SID_SExplorerBrowserFrame
,
&
IID_ICommDlgBrowser
,
(
void
**
)
&
punk
);
ok
(
hr
==
S_OK
,
"got 0x%08x.
\n
"
,
hr
);
hr
=
IServiceProvider_QueryService
(
psp
,
&
SID_STopLevelBrowser
,
&
IID_IUnknown
,
(
void
**
)
&
punk
);
ok
(
hr
==
E_NOTIMPL
||
broken
(
hr
==
E_FAIL
),
"got 0x%08x (expected E_NOTIMPL)
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
hr
=
IServiceProvider_QueryService
(
psp
,
&
IID_IUnknown
,
&
IID_IUnknown
,
(
void
**
)
&
punk
);
ok
(
hr
==
E_NOTIMPL
||
broken
(
hr
==
E_FAIL
),
"got 0x%08x (expected E_NOTIMPL)
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
punk
);
IServiceProvider_Release
(
psp
);
...
...
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