mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 15:18:33 +00:00
![Hermès Bélusca-Maïto](/assets/img/avatar_default.png)
Introduce a "apitest.h" header gathering special things for apitests (SEH macros, wine/test.h inclusion, and so on...). svn path=/trunk/; revision=60313
22 lines
554 B
C
22 lines
554 B
C
/*
|
|
* PROJECT: ReactOS api tests
|
|
* LICENSE: GPLv2+ - See COPYING in the top level directory
|
|
* PURPOSE: Test for MultiByteToWideChar
|
|
* PROGRAMMER: Mike "tamlin" Nordell
|
|
*/
|
|
|
|
#include <apitest.h>
|
|
|
|
#include <winnls.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);
|
|
}
|