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
08347365
Commit
08347365
authored
Apr 22, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Apr 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Rename variable to avoid a conflict on some systems.
parent
aaed9de5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
clipboard.c
dlls/ole32/tests/clipboard.c
+13
-13
No files found.
dlls/ole32/tests/clipboard.c
View file @
08347365
...
...
@@ -387,7 +387,7 @@ static HRESULT DataObjectImpl_CreateText(LPCSTR text, LPDATAOBJECT *lplpdataobj)
const
char
*
cmpl_stm_data
=
"complex stream"
;
const
char
*
cmpl_text_data
=
"complex text"
;
const
WCHAR
devname
[]
=
{
'm'
,
'y'
,
'd'
,
'e'
,
'v'
,
0
};
const
WCHAR
dev
ice_
name
[]
=
{
'm'
,
'y'
,
'd'
,
'e'
,
'v'
,
0
};
static
HRESULT
DataObjectImpl_CreateComplex
(
LPDATAOBJECT
*
lplpdataobj
)
{
...
...
@@ -418,15 +418,15 @@ static HRESULT DataObjectImpl_CreateComplex(LPDATAOBJECT *lplpdataobj)
memset
(
&
dm
,
0
,
sizeof
(
dm
));
dm
.
dmSize
=
sizeof
(
dm
);
dm
.
dmDriverExtra
=
0
;
lstrcpyW
(
dm
.
dmDeviceName
,
devname
);
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
;
lstrcpyW
(
dm
.
dmDeviceName
,
dev
ice_
name
);
obj
->
fmtetc
[
3
].
ptd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
DVTARGETDEVICE
,
tdData
)
+
sizeof
(
dev
ice_
name
)
+
dm
.
dmSize
+
dm
.
dmDriverExtra
);
obj
->
fmtetc
[
3
].
ptd
->
tdSize
=
FIELD_OFFSET
(
DVTARGETDEVICE
,
tdData
)
+
sizeof
(
dev
ice_
name
)
+
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
=
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
);
obj
->
fmtetc
[
3
].
ptd
->
tdExtDevmodeOffset
=
obj
->
fmtetc
[
3
].
ptd
->
tdDriverNameOffset
+
sizeof
(
dev
ice_
name
);
lstrcpyW
((
WCHAR
*
)
obj
->
fmtetc
[
3
].
ptd
->
tdData
,
dev
ice_
name
);
memcpy
(
obj
->
fmtetc
[
3
].
ptd
->
tdData
+
sizeof
(
dev
ice_
name
),
&
dm
,
dm
.
dmSize
+
dm
.
dmDriverExtra
);
InitFormatEtc
(
obj
->
fmtetc
[
4
],
cf_global
,
TYMED_HGLOBAL
);
InitFormatEtc
(
obj
->
fmtetc
[
5
],
cf_another
,
TYMED_HGLOBAL
);
...
...
@@ -1180,15 +1180,15 @@ static void test_flushed_getdata(void)
memset
(
&
dm
,
0
,
sizeof
(
dm
));
dm
.
dmSize
=
sizeof
(
dm
);
dm
.
dmDriverExtra
=
0
;
lstrcpyW
(
dm
.
dmDeviceName
,
devname
);
fmt
.
ptd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
DVTARGETDEVICE
,
tdData
)
+
sizeof
(
devname
)
+
dm
.
dmSize
+
dm
.
dmDriverExtra
);
fmt
.
ptd
->
tdSize
=
FIELD_OFFSET
(
DVTARGETDEVICE
,
tdData
)
+
sizeof
(
devname
)
+
dm
.
dmSize
+
dm
.
dmDriverExtra
;
lstrcpyW
(
dm
.
dmDeviceName
,
dev
ice_
name
);
fmt
.
ptd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
DVTARGETDEVICE
,
tdData
)
+
sizeof
(
dev
ice_
name
)
+
dm
.
dmSize
+
dm
.
dmDriverExtra
);
fmt
.
ptd
->
tdSize
=
FIELD_OFFSET
(
DVTARGETDEVICE
,
tdData
)
+
sizeof
(
dev
ice_
name
)
+
dm
.
dmSize
+
dm
.
dmDriverExtra
;
fmt
.
ptd
->
tdDriverNameOffset
=
FIELD_OFFSET
(
DVTARGETDEVICE
,
tdData
);
fmt
.
ptd
->
tdDeviceNameOffset
=
0
;
fmt
.
ptd
->
tdPortNameOffset
=
0
;
fmt
.
ptd
->
tdExtDevmodeOffset
=
fmt
.
ptd
->
tdDriverNameOffset
+
sizeof
(
devname
);
lstrcpyW
((
WCHAR
*
)
fmt
.
ptd
->
tdData
,
devname
);
memcpy
(
fmt
.
ptd
->
tdData
+
sizeof
(
devname
),
&
dm
,
dm
.
dmSize
+
dm
.
dmDriverExtra
);
fmt
.
ptd
->
tdExtDevmodeOffset
=
fmt
.
ptd
->
tdDriverNameOffset
+
sizeof
(
dev
ice_
name
);
lstrcpyW
((
WCHAR
*
)
fmt
.
ptd
->
tdData
,
dev
ice_
name
);
memcpy
(
fmt
.
ptd
->
tdData
+
sizeof
(
dev
ice_
name
),
&
dm
,
dm
.
dmSize
+
dm
.
dmDriverExtra
);
hr
=
IDataObject_GetData
(
get
,
&
fmt
,
&
med
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
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