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
83c45eaa
Commit
83c45eaa
authored
Feb 10, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmp: Added GetClientSite implementation.
parent
9a1f13cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
oleobj.c
dlls/wmp/oleobj.c
+5
-2
oleobj.c
dlls/wmp/tests/oleobj.c
+11
-0
No files found.
dlls/wmp/oleobj.c
View file @
83c45eaa
...
...
@@ -137,8 +137,11 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
static
HRESULT
WINAPI
OleObject_GetClientSite
(
IOleObject
*
iface
,
IOleClientSite
**
ppClientSite
)
{
WindowsMediaPlayer
*
This
=
impl_from_IOleObject
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
ppClientSite
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ppClientSite
);
*
ppClientSite
=
This
->
client_site
;
return
This
->
client_site
?
S_OK
:
E_FAIL
;
}
static
HRESULT
WINAPI
OleObject_SetHostNames
(
IOleObject
*
iface
,
LPCOLESTR
szContainerApp
,
LPCOLESTR
szContainerObj
)
...
...
dlls/wmp/tests/oleobj.c
View file @
83c45eaa
...
...
@@ -627,6 +627,7 @@ static void test_QI(IUnknown *unk)
static
void
test_wmp
(
void
)
{
IProvideClassInfo2
*
class_info
;
IOleClientSite
*
client_site
;
IPersistStreamInit
*
psi
;
IOleObject
*
oleobj
;
GUID
guid
;
...
...
@@ -667,9 +668,19 @@ static void test_wmp(void)
todo_wine
CHECK_CALLED
(
GetWindow
);
todo_wine
CHECK_CALLED
(
Invoke_USERMODE
);
client_site
=
NULL
;
hres
=
IOleObject_GetClientSite
(
oleobj
,
&
client_site
);
ok
(
hres
==
S_OK
,
"GetClientSite failed: %08x
\n
"
,
hres
);
ok
(
client_site
==
&
ClientSite
,
"client_site != ClientSite
\n
"
);
hres
=
IOleObject_SetClientSite
(
oleobj
,
NULL
);
ok
(
hres
==
S_OK
,
"SetClientSite failed: %08x
\n
"
,
hres
);
client_site
=
(
void
*
)
0xdeadbeef
;
hres
=
IOleObject_GetClientSite
(
oleobj
,
&
client_site
);
ok
(
hres
==
E_FAIL
,
"GetClientSite failed: %08x
\n
"
,
hres
);
ok
(
!
client_site
,
"client_site = %p
\n
"
,
client_site
);
ref
=
IOleObject_Release
(
oleobj
);
ok
(
!
ref
,
"ref = %d
\n
"
,
ref
);
}
...
...
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