11#define WIN32_NO_STATUS
18#define todo_static todo_if(1)
29 wchar_t wchSrc[2] = {
L'R', 0414};
34 skip(
"Buffer allocation failed!\n");
40 printf(
"The current codepage of your system tested is (%u) and locale (%s).\n\n",
codepage, loc);
44 todo_static ok(
Length == 0,
"Expected no characters to be converted (because the output argument is refused) but got %d.\n",
Length);
48 todo_static ok(
Length == 0,
"Expected no characters to be converted (because the output argument is refused) but got %d.\n",
Length);
52 ok(
errno == 0,
"The error number (errno) should be 0 even though an invalid character in current locale is given but got %d.\n",
errno);
53 todo_static ok(
Length == 0,
"Expected no characters to be converted (because the output argument is refused) but got %d.\n",
Length);
62 ok(
Length == 1,
"Expected one character to be converted (the null character) but got %d.\n",
Length);
67 ok(
Length == 1,
"Expected one character to be converted but got %d.\n",
Length);
static VOID FreeGuarded(_In_ PVOID Pointer)
static PVOID AllocateGuarded(_In_ SIZE_T SizeRequested)
#define ok_int(expression, result)
_CRTIMP unsigned int __cdecl ___lc_codepage_func(void)
_In_ ULONG _In_ ULONG _In_ ULONG Length