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
32766b52
Commit
32766b52
authored
Nov 22, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Nov 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Rename structure member to target device size.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1fcb8d2c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
datacache.c
dlls/ole32/datacache.c
+3
-2
ole2.c
dlls/ole32/tests/ole2.c
+7
-6
No files found.
dlls/ole32/datacache.c
View file @
32766b52
...
...
@@ -79,7 +79,8 @@ typedef struct PresentationDataHeader
* DWORD length;
* CHAR format_name[length]; (null-terminated)
*/
DWORD
unknown3
;
/* 4, possibly TYMED_ISTREAM */
DWORD
tdSize
;
/* This is actually a truncated DVTARGETDEVICE, if tdSize > sizeof(DWORD)
then there are tdSize - sizeof(DWORD) more bytes before dvAspect */
DVASPECT
dvAspect
;
DWORD
lindex
;
DWORD
advf
;
...
...
@@ -808,7 +809,7 @@ static HRESULT DataCacheEntry_Save(DataCacheEntry *cache_entry, IStorage *storag
if
(
cache_entry
->
fmtetc
.
ptd
)
FIXME
(
"ptd not serialized
\n
"
);
header
.
unknown3
=
4
;
header
.
tdSize
=
sizeof
(
header
.
tdSize
)
;
header
.
dvAspect
=
cache_entry
->
fmtetc
.
dwAspect
;
header
.
lindex
=
cache_entry
->
fmtetc
.
lindex
;
header
.
advf
=
cache_entry
->
advise_flags
;
...
...
dlls/ole32/tests/ole2.c
View file @
32766b52
...
...
@@ -143,7 +143,8 @@ typedef struct PresentationDataHeader
* DWORD length;
* CHAR format_name[length]; (null-terminated)
*/
DWORD
unknown3
;
/* 4, possibly TYMED_ISTREAM */
DWORD
tdSize
;
/* This is actually a truncated DVTARGETDEVICE, if tdSize > sizeof(DWORD)
then there are tdSize - sizeof(DWORD) more bytes before dvAspect */
DVASPECT
dvAspect
;
DWORD
lindex
;
DWORD
advf
;
...
...
@@ -1279,7 +1280,7 @@ static void test_OleLoad(IStorage *pStorage)
break
;
}
header
.
unknown3
=
4
;
header
.
tdSize
=
sizeof
(
header
.
tdSize
)
;
header
.
dvAspect
=
DVASPECT_CONTENT
;
header
.
lindex
=
-
1
;
header
.
advf
=
1
<<
i
;
...
...
@@ -3691,7 +3692,7 @@ static void test_data_cache_save(void)
hr
=
IStream_Write
(
stm
,
clipformat
,
sizeof
(
clipformat
),
NULL
);
ok
(
hr
==
S_OK
,
"unexpected %#x
\n
"
,
hr
);
hdr
.
unknown3
=
4
;
hdr
.
tdSize
=
sizeof
(
hdr
.
tdSize
)
;
hdr
.
dvAspect
=
DVASPECT_CONTENT
;
hdr
.
lindex
=
-
1
;
hdr
.
advf
=
ADVF_PRIMEFIRST
;
...
...
@@ -3966,8 +3967,8 @@ static void check_storage_contents(IStorage *stg, const struct storage_def *stg_
ok
(
bytes
>=
24
,
"read %u bytes
\n
"
,
bytes
);
if
(
winetest_debug
>
1
)
trace
(
"header:
unknown3
%#x, dvAspect %#x, lindex %#x, advf %#x, unknown7 %#x, dwObjectExtentX %#x, dwObjectExtentY %#x, dwSize %#x
\n
"
,
header
.
unknown3
,
header
.
dvAspect
,
header
.
lindex
,
header
.
advf
,
header
.
unknown7
,
trace
(
"header:
tdSize
%#x, dvAspect %#x, lindex %#x, advf %#x, unknown7 %#x, dwObjectExtentX %#x, dwObjectExtentY %#x, dwSize %#x
\n
"
,
header
.
tdSize
,
header
.
dvAspect
,
header
.
lindex
,
header
.
advf
,
header
.
unknown7
,
header
.
dwObjectExtentX
,
header
.
dwObjectExtentY
,
header
.
dwSize
);
}
...
...
@@ -4049,7 +4050,7 @@ static IStorage *create_storage_from_def(const struct storage_def *stg_def)
}
ok
(
hr
==
S_OK
,
"unexpected %#x
\n
"
,
hr
);
hdr
.
unknown3
=
4
;
hdr
.
tdSize
=
sizeof
(
hdr
.
tdSize
)
;
hdr
.
dvAspect
=
stg_def
->
stream
[
i
].
dvAspect
;
hdr
.
lindex
=
-
1
;
hdr
.
advf
=
stg_def
->
stream
[
i
].
advf
;
...
...
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