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
fae22c7c
Commit
fae22c7c
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::Close.
parent
7c6899ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
packager_main.c
dlls/packager/packager_main.c
+8
-2
oleobj.c
dlls/packager/tests/oleobj.c
+16
-0
No files found.
dlls/packager/packager_main.c
View file @
fae22c7c
...
...
@@ -142,8 +142,14 @@ static HRESULT WINAPI OleObject_SetHostNames(IOleObject *iface, LPCOLESTR szCont
static
HRESULT
WINAPI
OleObject_Close
(
IOleObject
*
iface
,
DWORD
dwSaveOption
)
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
FIXME
(
"(%p)->(0x%x)
\n
"
,
This
,
dwSaveOption
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(0x%x)
\n
"
,
This
,
dwSaveOption
);
if
(
dwSaveOption
==
OLECLOSE_SAVEIFDIRTY
||
dwSaveOption
==
OLECLOSE_PROMPTSAVE
)
WARN
(
"Saving unsupported
\n
"
);
return
S_OK
;
}
static
HRESULT
WINAPI
OleObject_SetMoniker
(
IOleObject
*
iface
,
DWORD
dwWhichMoniker
,
IMoniker
*
pmk
)
...
...
dlls/packager/tests/oleobj.c
View file @
fae22c7c
...
...
@@ -473,8 +473,24 @@ static void test_packager(void)
CloseHandle
(
file
);
}
hr
=
IOleObject_Close
(
oleobj
,
OLECLOSE_NOSAVE
);
ok
(
hr
==
S_OK
,
"Close failed: %08x
\n
"
,
hr
);
if
(
extended
){
file
=
CreateFileW
(
filename
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"Temporary file shouldn't be deleted
\n
"
);
CloseHandle
(
file
);
}
IPersistStorage_Release
(
persist
);
IOleObject_Release
(
oleobj
);
if
(
extended
){
file
=
CreateFileW
(
filename
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
file
==
INVALID_HANDLE_VALUE
,
"Temporary file should be deleted
\n
"
);
}
}
START_TEST
(
oleobj
)
...
...
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