[KERNEL32_APITEST]
[reactos.git] / rostests / apitests / kernel32 / MultiByteToWideChar.c
1 /*
2 * PROJECT: ReactOS api tests
3 * LICENSE: GPLv2+ - See COPYING in the top level directory
4 * PURPOSE: Test for MultiByteToWideChar
5 * PROGRAMMER: Mike "tamlin" Nordell
6 */
7
8 #include <apitest.h>
9
10 #include <winnls.h>
11
12 START_TEST(MultiByteToWideChar)
13 {
14 int ret;
15
16 ret = MultiByteToWideChar(CP_UTF8, 0, "a", sizeof("a"), 0, 0);
17 ok(ret == 2, "ret should be 2, is %d\n", ret);
18
19 ret = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, "a", sizeof("a"), 0, 0);
20 ok(ret == 2, "ret should be 2, is %d\n", ret);
21 }