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
c5e020c5
Commit
c5e020c5
authored
Mar 25, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Mar 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Read the class id from the top-level storage object.
The cache_entries' storages are just references to the same object anyway.
parent
366ed549
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
20 deletions
+14
-20
datacache.c
dlls/ole32/datacache.c
+14
-20
No files found.
dlls/ole32/datacache.c
View file @
c5e020c5
...
...
@@ -1182,34 +1182,28 @@ static ULONG WINAPI DataCache_IPersistStorage_Release(
/************************************************************************
* DataCache_GetClassID (IPersistStorage)
*
* The data cache doesn't implement this method.
*/
static
HRESULT
WINAPI
DataCache_GetClassID
(
IPersistStorage
*
iface
,
CLSID
*
pClassID
)
static
HRESULT
WINAPI
DataCache_GetClassID
(
IPersistStorage
*
iface
,
CLSID
*
clsid
)
{
DataCache
*
This
=
impl_from_IPersistStorage
(
iface
);
DataCacheEntry
*
cache_entry
;
DataCache
*
This
=
impl_from_IPersistStorage
(
iface
);
HRESULT
hr
;
STATSTG
statstg
;
TRACE
(
"(%p, %p)
\n
"
,
iface
,
pClassID
);
TRACE
(
"(%p, %p)
\n
"
,
iface
,
clsid
);
LIST_FOR_EACH_ENTRY
(
cache_entry
,
&
This
->
cache_list
,
DataCacheEntry
,
entry
)
{
if
(
cache_entry
->
storage
!=
NULL
)
if
(
This
->
presentationStorage
)
{
STATSTG
statstg
;
HRESULT
hr
=
IStorage_Stat
(
cache_entry
->
storage
,
&
statstg
,
STATFLAG_NONAME
);
if
(
SUCCEEDED
(
hr
))
{
*
pClassID
=
statstg
.
clsid
;
return
S_OK
;
}
hr
=
IStorage_Stat
(
This
->
presentationStorage
,
&
statstg
,
STATFLAG_NONAME
);
if
(
SUCCEEDED
(
hr
))
{
*
clsid
=
statstg
.
clsid
;
return
S_OK
;
}
}
}
*
pClassID
=
CLSID_NULL
;
*
clsid
=
CLSID_NULL
;
return
S_OK
;
return
S_OK
;
}
/************************************************************************
...
...
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