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
11cb788f
Commit
11cb788f
authored
Apr 23, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Apr 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: For win9x and winme the size of the data on the clipboard may be larger than expected.
parent
946936c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
clipboard.c
dlls/ole32/tests/clipboard.c
+8
-4
No files found.
dlls/ole32/tests/clipboard.c
View file @
11cb788f
...
...
@@ -767,8 +767,10 @@ static void test_cf_dataobject(IDataObject *data)
ok
(
DataObjectImpl_GetDataHere_calls
==
1
,
"got %d
\n
"
,
DataObjectImpl_GetDataHere_calls
);
ptr
=
GlobalLock
(
h
);
size
=
GlobalSize
(
h
);
ok
(
size
==
strlen
(
cmpl_stm_data
),
"expected %d got %d
\n
"
,
lstrlenA
(
cmpl_stm_data
),
size
);
ok
(
!
memcmp
(
ptr
,
cmpl_stm_data
,
size
),
"mismatch
\n
"
);
ok
(
size
==
strlen
(
cmpl_stm_data
)
||
broken
(
size
>
strlen
(
cmpl_stm_data
)),
/* win9x, winme */
"expected %d got %d
\n
"
,
lstrlenA
(
cmpl_stm_data
),
size
);
ok
(
!
memcmp
(
ptr
,
cmpl_stm_data
,
strlen
(
cmpl_stm_data
)),
"mismatch
\n
"
);
GlobalUnlock
(
h
);
}
else
if
(
cf
==
cf_global
)
...
...
@@ -782,8 +784,10 @@ static void test_cf_dataobject(IDataObject *data)
ok
(
DataObjectImpl_GetDataHere_calls
==
0
,
"got %d
\n
"
,
DataObjectImpl_GetDataHere_calls
);
ptr
=
GlobalLock
(
h
);
size
=
GlobalSize
(
h
);
ok
(
size
==
strlen
(
cmpl_text_data
)
+
1
,
"expected %d got %d
\n
"
,
lstrlenA
(
cmpl_text_data
)
+
1
,
size
);
ok
(
!
memcmp
(
ptr
,
cmpl_text_data
,
size
),
"mismatch
\n
"
);
ok
(
size
==
strlen
(
cmpl_text_data
)
+
1
||
broken
(
size
>
strlen
(
cmpl_text_data
)
+
1
),
/* win9x, winme */
"expected %d got %d
\n
"
,
lstrlenA
(
cmpl_text_data
)
+
1
,
size
);
ok
(
!
memcmp
(
ptr
,
cmpl_text_data
,
strlen
(
cmpl_text_data
)
+
1
),
"mismatch
\n
"
);
GlobalUnlock
(
h
);
}
}
while
(
cf
);
...
...
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