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
088192a9
Commit
088192a9
authored
Jul 20, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Fixed invalid COM object usage.
parent
491e84a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
25 deletions
+6
-25
webbrowser.c
dlls/ieframe/tests/webbrowser.c
+6
-25
No files found.
dlls/ieframe/tests/webbrowser.c
View file @
088192a9
...
...
@@ -3842,43 +3842,24 @@ static void test_FileProtocol(void)
DeleteFileA
(
file_path
);
}
struct
sink
{
IAdviseSink
IAdviseSink_iface
;
};
static
inline
struct
sink
*
impl_from_IAdviseSink
(
IAdviseSink
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
sink
,
IAdviseSink_iface
);
}
static
HRESULT
WINAPI
sink_QueryInterface
(
IAdviseSink
*
iface
,
REFIID
riid
,
void
**
obj
)
{
struct
sink
*
sink
=
impl_from_IAdviseSink
(
iface
);
trace
(
"%p, %p, %p
\n
"
,
iface
,
riid
,
obj
);
if
(
IsEqualGUID
(
riid
,
&
IID_IAdviseSink
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
))
{
*
obj
=
&
sink
->
IAdviseSink_iface
;
}
else
{
return
E_NOINTERFACE
;
if
(
IsEqualGUID
(
riid
,
&
IID_IAdviseSink
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
))
{
*
obj
=
iface
;
return
S_OK
;
}
IAdviseSink_AddRef
(
iface
);
return
S_OK
;
ok
(
0
,
"unexpected call QI(%s)
\n
"
,
wine_dbgstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
sink_AddRef
(
IAdviseSink
*
iface
)
{
trace
(
"%p
\n
"
,
iface
);
return
2
;
}
static
ULONG
WINAPI
sink_Release
(
IAdviseSink
*
iface
)
{
trace
(
"%p
\n
"
,
iface
);
return
1
;
}
...
...
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