21{
22 int WideLen;
23 int Utf8Len;
25 int Ret;
29
30 ExpectedUtf8 =
ntv6(1) ? ExpectedUtf8_Vista : ExpectedUtf8_2003;
33
34
36 ok_(
File,
Line)(Ret == Utf8Len,
"Length check: Ret = %d\n", Ret);
37
38
40 ok_(
File,
Line)(Ret == Utf8Len + 1,
"Length check with null: Ret = %d\n", Ret);
41
42
45 ok_(
File,
Line)(Ret == Utf8Len,
"Convert: Ret = %d\n", Ret);
46 for (
i = 0;
i < Utf8Len;
i++)
47 {
49 }
50
51
54 ok_(
File,
Line)(Ret == Utf8Len + 1,
"Convert with null: Ret = %d\n", Ret);
55 for (
i = 0;
i < Utf8Len + 1;
i++)
56 {
57 ok_(
File,
Line)(
Buffer[
i] == ExpectedUtf8[
i],
"Convert with null: Buffer[%lu] = 0x%x, expected 0x%x\n",
i, (
unsigned char)
Buffer[
i], (
unsigned char)ExpectedUtf8[
i]);
58 }
59
60
65 {
66 ok_(
File,
Line)(Ret == 0,
"Length check, reject invalid, NT5: Ret = %d\n", Ret);
68 }
69 else if (IsInvalid)
70 {
71 ok_(
File,
Line)(Ret == 0,
"Length check, reject invalid: Ret = %d\n", Ret);
73 }
74 else
75 {
76 ok_(
File,
Line)(Ret == Utf8Len + 1,
"Length check, reject invalid: Ret = %d\n", Ret);
77 }
78
79
85 {
86 ok_(
File,
Line)(Ret == 0,
"Convert, reject invalid, NT5: Ret = %d\n", Ret);
88 }
89 else if (IsInvalid)
90 {
91 ok_(
File,
Line)(Ret == 0,
"Convert, reject invalid: Ret = %d\n", Ret);
93 for (
i = 0;
i < Utf8Len + 1;
i++)
94 {
95 ok_(
File,
Line)(
Buffer[
i] == ExpectedUtf8[
i],
"Convert, reject invalid: Buffer[%lu] = 0x%x, expected 0x%x\n",
i, (
unsigned char)
Buffer[
i], (
unsigned char)ExpectedUtf8[
i]);
96 }
97 }
98 else
99 {
100 ok_(
File,
Line)(Ret == Utf8Len + 1,
"Convert, reject invalid: Ret = %d\n", Ret);
101 for (
i = 0;
i < Utf8Len + 1;
i++)
102 {
103 ok_(
File,
Line)(
Buffer[
i] == ExpectedUtf8[
i],
"Convert, reject invalid: Buffer[%lu] = 0x%x, expected 0x%x\n",
i, (
unsigned char)
Buffer[
i], (
unsigned char)ExpectedUtf8[
i]);
104 }
105 }
106}
#define WideCharToMultiByte
#define FillMemory(BUF, SIZ, MASK)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define WC_ERR_INVALID_CHARS
int WINAPI lstrlenA(LPCSTR lpString)
DWORD WINAPI GetLastError(void)
#define ERROR_NO_UNICODE_TRANSLATION
#define ERROR_INVALID_FLAGS