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
98d4c2b0
Commit
98d4c2b0
authored
Jun 20, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Implement reading of VT_CF storage properties.
parent
e43cec76
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
stg_prop.c
dlls/ole32/stg_prop.c
+25
-0
No files found.
dlls/ole32/stg_prop.c
View file @
98d4c2b0
...
...
@@ -82,6 +82,11 @@ static inline StorageImpl *impl_from_IPropertySetStorage( IPropertySetStorage *i
#define MAX_VERSION_0_PROP_NAME_LENGTH 256
#define CFTAG_WINDOWS (-1L)
#define CFTAG_MACINTOSH (-2L)
#define CFTAG_FMTID (-3L)
#define CFTAG_NODATA 0L
/* The format version (and what it implies) is described here:
* http://msdn.microsoft.com/library/en-us/stg/stg/format_version.asp
*/
...
...
@@ -1138,6 +1143,26 @@ static HRESULT PropertyStorage_ReadProperty(PropertyStorage_impl *This,
StorageUtl_ReadULargeInteger
(
data
,
0
,
(
ULARGE_INTEGER
*
)
&
prop
->
u
.
filetime
);
break
;
case
VT_CF
:
{
DWORD
len
=
0
,
type
=
0
,
tag
=
0
;
StorageUtl_ReadDWord
(
data
,
0
,
&
len
);
StorageUtl_ReadDWord
(
data
,
4
,
&
tag
);
StorageUtl_ReadDWord
(
data
,
8
,
&
type
);
if
(
tag
==
CFTAG_WINDOWS
&&
len
>
12
)
{
prop
->
u
.
pclipdata
=
CoTaskMemAlloc
(
sizeof
(
CLIPDATA
));
prop
->
u
.
pclipdata
->
cbSize
=
len
;
prop
->
u
.
pclipdata
->
ulClipFmt
=
type
;
prop
->
u
.
pclipdata
->
pClipData
=
CoTaskMemAlloc
(
len
);
memcpy
(
prop
->
u
.
pclipdata
->
pClipData
,
data
+
12
,
len
-
12
);
TRACE
(
"returning %p, len %ld
\n
"
,
prop
->
u
.
pclipdata
->
pClipData
,
len
-
12
);
}
else
hr
=
STG_E_INVALIDPARAMETER
;
}
break
;
default:
FIXME
(
"unsupported type %d
\n
"
,
prop
->
vt
);
hr
=
STG_E_INVALIDPARAMETER
;
...
...
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