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
89dcb968
Commit
89dcb968
authored
Mar 30, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Mar 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Fix DVTARGETDEVICE offsets.
parent
969e5d7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
clipboard.c
dlls/ole32/tests/clipboard.c
+4
-4
No files found.
dlls/ole32/tests/clipboard.c
View file @
89dcb968
...
...
@@ -387,12 +387,12 @@ static HRESULT DataObjectImpl_CreateComplex(LPDATAOBJECT *lplpdataobj)
dm
.
dmSize
=
sizeof
(
dm
);
dm
.
dmDriverExtra
=
0
;
lstrcpyW
(
dm
.
dmDeviceName
,
devname
);
obj
->
fmtetc
[
3
].
ptd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
DVTARGETDEVICE
)
+
sizeof
(
devname
)
+
dm
.
dmSize
+
dm
.
dmDriverExtra
);
obj
->
fmtetc
[
3
].
ptd
->
tdSize
=
sizeof
(
DVTARGETDEVICE
)
+
sizeof
(
devname
)
+
dm
.
dmSize
+
dm
.
dmDriverExtra
;
obj
->
fmtetc
[
3
].
ptd
->
tdDriverNameOffset
=
sizeof
(
DVTARGETDEVICE
);
obj
->
fmtetc
[
3
].
ptd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
DVTARGETDEVICE
,
tdData
)
+
sizeof
(
devname
)
+
dm
.
dmSize
+
dm
.
dmDriverExtra
);
obj
->
fmtetc
[
3
].
ptd
->
tdSize
=
FIELD_OFFSET
(
DVTARGETDEVICE
,
tdData
)
+
sizeof
(
devname
)
+
dm
.
dmSize
+
dm
.
dmDriverExtra
;
obj
->
fmtetc
[
3
].
ptd
->
tdDriverNameOffset
=
FIELD_OFFSET
(
DVTARGETDEVICE
,
tdData
);
obj
->
fmtetc
[
3
].
ptd
->
tdDeviceNameOffset
=
0
;
obj
->
fmtetc
[
3
].
ptd
->
tdPortNameOffset
=
0
;
obj
->
fmtetc
[
3
].
ptd
->
tdExtDevmodeOffset
=
sizeof
(
DVTARGETDEVICE
)
+
sizeof
(
devname
);
obj
->
fmtetc
[
3
].
ptd
->
tdExtDevmodeOffset
=
obj
->
fmtetc
[
3
].
ptd
->
tdDriverNameOffset
+
sizeof
(
devname
);
lstrcpyW
((
WCHAR
*
)
obj
->
fmtetc
[
3
].
ptd
->
tdData
,
devname
);
memcpy
(
obj
->
fmtetc
[
3
].
ptd
->
tdData
+
sizeof
(
devname
),
&
dm
,
dm
.
dmSize
+
dm
.
dmDriverExtra
);
...
...
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