Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1b244baf
Commit
1b244baf
authored
Dec 04, 2006
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix HandsOffStorage in the data cache.
parent
6235ac9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
datacache.c
dlls/ole32/datacache.c
+13
-0
ole2.c
dlls/ole32/tests/ole2.c
+0
-2
No files found.
dlls/ole32/datacache.c
View file @
1b244baf
...
...
@@ -739,6 +739,15 @@ static inline HRESULT DataCacheEntry_DiscardData(DataCacheEntry *This)
return
S_OK
;
}
static
inline
void
DataCacheEntry_HandsOffStorage
(
DataCacheEntry
*
This
)
{
if
(
This
->
storage
)
{
IStorage_Release
(
This
->
storage
);
This
->
storage
=
NULL
;
}
}
/*********************************************************
* Method implementation for the non delegating IUnknown
* part of the DataCache class.
...
...
@@ -1469,6 +1478,7 @@ static HRESULT WINAPI DataCache_HandsOffStorage(
IPersistStorage
*
iface
)
{
DataCache
*
this
=
impl_from_IPersistStorage
(
iface
);
DataCacheEntry
*
cache_entry
;
TRACE
(
"(%p)
\n
"
,
iface
);
...
...
@@ -1478,6 +1488,9 @@ static HRESULT WINAPI DataCache_HandsOffStorage(
this
->
presentationStorage
=
NULL
;
}
LIST_FOR_EACH_ENTRY
(
cache_entry
,
&
this
->
cache_list
,
DataCacheEntry
,
entry
)
DataCacheEntry_HandsOffStorage
(
cache_entry
);
return
S_OK
;
}
...
...
dlls/ole32/tests/ole2.c
View file @
1b244baf
...
...
@@ -1273,9 +1273,7 @@ static void test_data_cache(void)
hr
=
IOleCache2_DiscardCache
(
pOleCache
,
DISCARDCACHE_NOSAVE
);
ok_ole_success
(
hr
,
"IOleCache2_DiscardCache"
);
hr
=
IViewObject_Draw
(
pViewObject
,
DVASPECT_ICON
,
-
1
,
NULL
,
NULL
,
NULL
,
hdcMem
,
&
rcBounds
,
NULL
,
draw_continue
,
0xdeadbeef
);
todo_wine
{
ok
(
hr
==
OLE_E_BLANK
,
"IViewObject_Draw with uncached aspect should have returned OLE_E_BLANK instead of 0x%08x
\n
"
,
hr
);
}
DeleteDC
(
hdcMem
);
...
...
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