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
77f4c20a
Commit
77f4c20a
authored
Nov 05, 2017
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Check GetClipboardFormatName length.
Signed-off-by:
Marcus Meissner
<
marcus@jet.franken.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b32e8c67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
clipboard.c
dlls/user32/tests/clipboard.c
+3
-0
No files found.
dlls/user32/tests/clipboard.c
View file @
77f4c20a
...
...
@@ -385,6 +385,9 @@ static void test_RegisterClipboardFormatA(void)
ok
(
len
==
lstrlenA
(
"my_cool_clipboard_format"
),
"wrong format name length %d
\n
"
,
len
);
ok
(
!
lstrcmpA
(
buf
,
"my_cool_clipboard_format"
),
"wrong format name
\"
%s
\"\n
"
,
buf
);
len
=
GetClipboardFormatNameA
(
format_id
,
NULL
,
0
);
ok
(
len
==
0
,
"wrong format name length %d
\n
"
,
len
);
lstrcpyA
(
buf
,
"foo"
);
SetLastError
(
0xdeadbeef
);
len
=
GetAtomNameA
((
ATOM
)
format_id
,
buf
,
256
);
...
...
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