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
04b6fc9d
Commit
04b6fc9d
authored
Jun 18, 2014
by
Andrew Eikum
Committed by
Alexandre Julliard
Jun 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packager: Implement IOleObject::GetMiscStatus.
parent
07e9d33f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
packager_main.c
dlls/packager/packager_main.c
+9
-2
oleobj.c
dlls/packager/tests/oleobj.c
+10
-1
No files found.
dlls/packager/packager_main.c
View file @
04b6fc9d
...
...
@@ -256,8 +256,15 @@ static HRESULT WINAPI OleObject_EnumAdvise(IOleObject *iface, IEnumSTATDATA **pp
static
HRESULT
WINAPI
OleObject_GetMiscStatus
(
IOleObject
*
iface
,
DWORD
dwAspect
,
DWORD
*
pdwStatus
)
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
FIXME
(
"(%p)->(%d, %p)
\n
"
,
This
,
dwAspect
,
pdwStatus
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%d, %p)
\n
"
,
This
,
dwAspect
,
pdwStatus
);
if
(
!
pdwStatus
)
return
E_INVALIDARG
;
*
pdwStatus
=
OLEMISC_ONLYICONIC
;
return
S_OK
;
}
static
HRESULT
WINAPI
OleObject_SetColorScheme
(
IOleObject
*
iface
,
LOGPALETTE
*
pLogpal
)
...
...
dlls/packager/tests/oleobj.c
View file @
04b6fc9d
...
...
@@ -410,7 +410,7 @@ static void test_packager(void)
{
IOleObject
*
oleobj
;
IPersistStorage
*
persist
;
DWORD
len
,
bytes_read
;
DWORD
len
,
bytes_read
,
status
;
HRESULT
hr
;
HANDLE
file
;
WCHAR
filename
[
MAX_PATH
];
...
...
@@ -441,6 +441,15 @@ static void test_packager(void)
hr
=
IOleObject_SetClientSite
(
oleobj
,
&
clientsite
);
ok
(
hr
==
S_OK
,
"SetClientSite failed: %08x
\n
"
,
hr
);
hr
=
IOleObject_GetMiscStatus
(
oleobj
,
DVASPECT_CONTENT
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"GetMiscStatus failed: %08x
\n
"
,
hr
);
hr
=
IOleObject_GetMiscStatus
(
oleobj
,
DVASPECT_CONTENT
,
&
status
);
ok
(
hr
==
S_OK
,
"GetMiscStatus failed: %08x
\n
"
,
hr
);
ok
(
status
==
OLEMISC_ONLYICONIC
||
status
==
OLEMISC_CANTLINKINSIDE
/* winxp */
,
"Got wrong DVASPECT_CONTENT status: 0x%x
\n
"
,
status
);
hr
=
IOleObject_QueryInterface
(
oleobj
,
&
IID_IPersistStorage
,
(
void
**
)
&
persist
);
ok
(
hr
==
S_OK
,
"QueryInterface(IPersistStorage) failed: %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