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
c140cf11
Commit
c140cf11
authored
Jan 25, 2018
by
Huw Davies
Committed by
Alexandre Julliard
Jan 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Allow caching of icon aspects for static class caches.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f65f1a93
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
+1
-1
ole2.c
dlls/ole32/tests/ole2.c
+12
-1
No files found.
dlls/ole32/datacache.c
View file @
c140cf11
...
...
@@ -2398,7 +2398,7 @@ static HRESULT WINAPI DataCache_Cache(
return
CACHE_S_SAMECACHE
;
}
if
(
This
->
clsid_static
)
return
DV_E_FORMATETC
;
if
(
This
->
clsid_static
&&
fmt_cpy
.
dwAspect
!=
DVASPECT_ICON
)
return
DV_E_FORMATETC
;
hr
=
DataCache_CreateEntry
(
This
,
&
fmt_cpy
,
advf
,
FALSE
,
&
cache_entry
);
...
...
dlls/ole32/tests/ole2.c
View file @
c140cf11
...
...
@@ -2441,13 +2441,24 @@ static void test_data_cache_cache(void)
hr
=
IOleCache2_Cache
(
cache
,
&
fmt
,
0
,
&
conn
);
ok
(
FAILED
(
hr
),
"got %08x
\n
"
,
hr
);
fmt
.
dwAspect
=
DVASPECT_DOCPRINT
;
hr
=
IOleCache2_Cache
(
cache
,
&
fmt
,
0
,
&
conn
);
ok
(
FAILED
(
hr
),
"got %08x
\n
"
,
hr
);
/* try caching another clip format */
fmt
.
dwAspect
=
DVASPECT_CONTENT
;
fmt
.
cfFormat
=
CF_METAFILEPICT
;
fmt
.
dwAspect
=
DVASPECT_CONTENT
;
fmt
.
tymed
=
TYMED_MFPICT
;
hr
=
IOleCache2_Cache
(
cache
,
&
fmt
,
0
,
&
conn
);
ok
(
FAILED
(
hr
),
"got %08x
\n
"
,
hr
);
/* As an exception, it's possible to add an icon aspect */
fmt
.
cfFormat
=
CF_METAFILEPICT
;
fmt
.
dwAspect
=
DVASPECT_ICON
;
fmt
.
tymed
=
TYMED_MFPICT
;
hr
=
IOleCache2_Cache
(
cache
,
&
fmt
,
0
,
&
conn
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
IOleCache2_Release
(
cache
);
}
...
...
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