2012-10-10 19:10:49 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS api tests
|
|
|
|
* LICENSE: GPLv2+ - See COPYING in the top level directory
|
|
|
|
* PURPOSE: Test for MultiByteToWideChar
|
|
|
|
* PROGRAMMER: Mike "tamlin" Nordell
|
|
|
|
*/
|
|
|
|
|
2013-09-22 17:52:42 +00:00
|
|
|
#include <apitest.h>
|
2012-10-10 19:10:49 +00:00
|
|
|
|
2013-09-22 17:52:42 +00:00
|
|
|
#include <winnls.h>
|
2012-10-10 19:10:49 +00:00
|
|
|
|
|
|
|
START_TEST(MultiByteToWideChar)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
ret = MultiByteToWideChar(CP_UTF8, 0, "a", sizeof("a"), 0, 0);
|
|
|
|
ok(ret == 2, "ret should be 2, is %d\n", ret);
|
|
|
|
|
|
|
|
ret = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, "a", sizeof("a"), 0, 0);
|
|
|
|
ok(ret == 2, "ret should be 2, is %d\n", ret);
|
|
|
|
}
|