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
809abaab
Commit
809abaab
authored
May 08, 1999
by
Francis Beaudet
Committed by
Alexandre Julliard
May 08, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Second part of the OLE datacache implementation.
parent
07d2a789
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
16 deletions
+53
-16
datacache.c
ole/datacache.c
+0
-0
defaulthandler.c
ole/defaulthandler.c
+2
-2
ole2.c
ole/ole2.c
+39
-0
ole2stubs.c
ole/ole2stubs.c
+0
-12
oleobj.c
ole/oleobj.c
+12
-2
No files found.
ole/datacache.c
View file @
809abaab
This diff is collapsed.
Click to expand it.
ole/defaulthandler.c
View file @
809abaab
...
...
@@ -24,10 +24,10 @@
* done in this area.
*
* - Some functions still return E_NOTIMPL they have to be
* implemented
m
ost of those are related to the running of the
* implemented
. M
ost of those are related to the running of the
* actual server.
*
* - All the methods rel
e
ated to notification and advise sinks are
* - All the methods related to notification and advise sinks are
* in place but no notifications are sent to the sinks yet.
*/
#include <assert.h>
...
...
ole/ole2.c
View file @
809abaab
...
...
@@ -773,6 +773,45 @@ HRESULT WINAPI OleLoad(
}
/***********************************************************************
* OleSave [OLE32.124]
*/
HRESULT
WINAPI
OleSave
(
LPPERSISTSTORAGE
pPS
,
LPSTORAGE
pStg
,
BOOL
fSameAsLoad
)
{
HRESULT
hres
;
CLSID
objectClass
;
TRACE
(
ole
,
"(%p,%p,%x)
\n
"
,
pPS
,
pStg
,
fSameAsLoad
);
/*
* First, we transfer the class ID (if available)
*/
hres
=
IPersistStorage_GetClassID
(
pPS
,
&
objectClass
);
if
(
SUCCEEDED
(
hres
))
{
WriteClassStg
(
pStg
,
&
objectClass
);
}
/*
* Then, we ask the object to save itself to the
* storage. If it is successful, we commit the storage.
*/
hres
=
IPersistStorage_Save
(
pPS
,
pStg
,
fSameAsLoad
);
if
(
SUCCEEDED
(
hres
))
{
IStorage_Commit
(
pStg
,
STGC_DEFAULT
);
}
return
hres
;
}
/***********************************************************************
* OleGetClipboard32 [OLE32.105]
*/
HRESULT
WINAPI
OleGetClipboard
(
...
...
ole/ole2stubs.c
View file @
809abaab
...
...
@@ -232,15 +232,3 @@ HRESULT WINAPI OleRegEnumFormatEtc (
return
S_OK
;
}
/***********************************************************************
* OleSave [OLE32.124]
*/
HRESULT
WINAPI
OleSave
(
LPPERSISTSTORAGE
pPS
,
LPSTORAGE
pStg
,
BOOL
fSameAsLoad
)
{
FIXME
(
ole
,
"(%p,%p,%x), stub!
\n
"
,
pPS
,
pStg
,
fSameAsLoad
);
return
S_OK
;
}
ole/oleobj.c
View file @
809abaab
...
...
@@ -241,8 +241,10 @@ static HRESULT WINAPI OleAdviseHolderImpl_Advise(
/*
* Return the index as the cookie.
* Since 0 is not a valid cookie, we will increment by
* 1 the index in the table.
*/
*
pdwConnection
=
index
;
*
pdwConnection
=
index
+
1
;
return
S_OK
;
}
...
...
@@ -259,9 +261,17 @@ static HRESULT WINAPI OleAdviseHolderImpl_Unadvise(
TRACE
(
ole
,
"(%p, %lu)
\n
"
,
This
,
dwConnection
);
/*
* So we don't return 0 as a cookie, the index was
* incremented by 1 in OleAdviseHolderImpl_Advise
* we have to compensate.
*/
dwConnection
--
;
/*
* Check for invalid cookies.
*/
if
(
dwConnection
>=
This
->
maxSinks
)
if
(
(
dwConnection
<
0
)
||
(
dwConnection
>=
This
->
maxSinks
)
)
return
OLE_E_NOCONNECTION
;
if
(
This
->
arrayOfSinks
[
dwConnection
]
==
NULL
)
...
...
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