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
d1691bc2
Commit
d1691bc2
authored
Feb 11, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmp: Added GetMiscStatus implementation.
parent
5a60ebf8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
oleobj.c
dlls/wmp/oleobj.c
+14
-2
oleobj.c
dlls/wmp/tests/oleobj.c
+6
-0
No files found.
dlls/wmp/oleobj.c
View file @
d1691bc2
...
...
@@ -268,8 +268,20 @@ static HRESULT WINAPI OleObject_EnumAdvise(IOleObject *iface, IEnumSTATDATA **pp
static
HRESULT
WINAPI
OleObject_GetMiscStatus
(
IOleObject
*
iface
,
DWORD
dwAspect
,
DWORD
*
pdwStatus
)
{
WindowsMediaPlayer
*
This
=
impl_from_IOleObject
(
iface
);
FIXME
(
"(%p)->(%d %p)
\n
"
,
This
,
dwAspect
,
pdwStatus
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
dwAspect
,
pdwStatus
);
switch
(
dwAspect
)
{
case
DVASPECT_CONTENT
:
*
pdwStatus
=
OLEMISC_SETCLIENTSITEFIRST
|
OLEMISC_ACTIVATEWHENVISIBLE
|
OLEMISC_INSIDEOUT
|
OLEMISC_CANTLINKINSIDE
|
OLEMISC_RECOMPOSEONRESIZE
;
break
;
default:
FIXME
(
"Unhandled aspect %d
\n
"
,
dwAspect
);
return
E_NOTIMPL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
OleObject_SetColorScheme
(
IOleObject
*
iface
,
LOGPALETTE
*
pLogpal
)
...
...
dlls/wmp/tests/oleobj.c
View file @
d1691bc2
...
...
@@ -630,6 +630,7 @@ static void test_wmp(void)
IOleClientSite
*
client_site
;
IPersistStreamInit
*
psi
;
IOleObject
*
oleobj
;
DWORD
misc_status
;
GUID
guid
;
LONG
ref
;
HRESULT
hres
;
...
...
@@ -652,6 +653,11 @@ static void test_wmp(void)
test_QI
((
IUnknown
*
)
oleobj
);
hres
=
IOleObject_GetMiscStatus
(
oleobj
,
DVASPECT_CONTENT
,
&
misc_status
);
ok
(
hres
==
S_OK
,
"GetMiscStatus failed: %08x
\n
"
,
hres
);
ok
(
misc_status
==
(
OLEMISC_SETCLIENTSITEFIRST
|
OLEMISC_ACTIVATEWHENVISIBLE
|
OLEMISC_INSIDEOUT
|
OLEMISC_CANTLINKINSIDE
|
OLEMISC_RECOMPOSEONRESIZE
),
"misc_status = %x
\n
"
,
misc_status
);
hres
=
IOleObject_QueryInterface
(
oleobj
,
&
IID_IPersistStreamInit
,
(
void
**
)
&
psi
);
ok
(
hres
==
S_OK
,
"Could not get IPersistStreamInit iface: %08x
\n
"
,
hres
);
...
...
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