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
e690916f
Commit
e690916f
authored
May 18, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add an overflow test for MultiByteToWideChar.
parent
90bafb3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
codepage.c
dlls/kernel32/tests/codepage.c
+6
-0
No files found.
dlls/kernel32/tests/codepage.c
View file @
e690916f
...
...
@@ -137,6 +137,12 @@ static void test_negative_source_length(void)
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
"foobar"
,
-
2002
,
bufW
,
10
);
ok
(
len
==
7
&&
!
mylstrcmpW
(
bufW
,
foobarW
)
&&
GetLastError
()
==
0xdeadbeef
,
"MultiByteToWideChar(-2002): len=%d error=%u
\n
"
,
len
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
memset
(
bufW
,
'x'
,
sizeof
(
bufW
));
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
"foobar"
,
-
1
,
bufW
,
6
);
ok
(
len
==
0
&&
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"MultiByteToWideChar(-1): len=%d error=%u
\n
"
,
len
,
GetLastError
());
}
static
void
test_overlapped_buffers
(
void
)
...
...
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