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
abfe0f2f
Commit
abfe0f2f
authored
Aug 18, 2005
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Aug 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test passing NULL source to WideCharToMultiByte.
parent
58d7d745
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
codepage.c
dlls/kernel/tests/codepage.c
+14
-0
No files found.
dlls/kernel/tests/codepage.c
View file @
abfe0f2f
...
...
@@ -25,6 +25,19 @@
#include "winbase.h"
#include "winnls.h"
static
void
test_null_source
(
void
)
{
int
len
;
DWORD
GLE
;
SetLastError
(
0
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
NULL
,
0
,
NULL
,
0
,
NULL
,
NULL
);
GLE
=
GetLastError
();
ok
(
!
len
&&
GLE
==
ERROR_INVALID_PARAMETER
,
"WideCharToMultiByte returned %d with GLE=%ld (expected 0 with ERROR_INVALID_PARAMETER)
\n
"
,
len
,
GLE
);
}
/* lstrcmpW is not supported on Win9x! */
static
int
mylstrcmpW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
)
{
...
...
@@ -71,6 +84,7 @@ static void test_overlapped_buffers(void)
START_TEST
(
codepage
)
{
test_null_source
();
test_negative_source_length
();
test_overlapped_buffers
();
}
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