reactos/modules/rostests/apitests/kernel32/MultiByteToWideChar.c

20 lines
533 B
C
Raw Normal View History

/*
* PROJECT: ReactOS api tests
* LICENSE: GPLv2+ - See COPYING in the top level directory
* PURPOSE: Test for MultiByteToWideChar
* PROGRAMMER: Mike "tamlin" Nordell
*/
2017-12-13 12:48:26 +00:00
#include "precomp.h"
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);
}