17{
20 const char *dataAX = "test12345";
21 const wchar_t *dataWX =
L"test12345";
23
24
25
26
29
33
34
35
36
37 {
41 ok_int(a2a.m_szBuffer[0], 0);
42
47
52
56 ok_int(w2w.m_szBuffer[0], 0);
57 }
58
59
60
61
62 {
66 ok_int(a2a.m_szBuffer[0], 0);
67 ok_ptr(a2a.m_psz, a2a.m_szBuffer);
68
74
80
84 ok_int(w2w.m_szBuffer[0], 0);
85 ok_ptr(w2w.m_psz, w2w.m_szBuffer);
86 }
87
88
89
90
91 {
94 ok_str(a2a.m_psz,
"TEST123");
95 ok_ptr(a2a.m_psz, a2a.m_szBuffer);
96
101
106
107 CW2W w2w(
L"TEST123");
110 ok_ptr(w2w.m_psz, w2w.m_szBuffer);
111 }
112
113
114
115
116 {
119 ok_str(a2ax.m_psz,
"123");
120 ok_ptr(a2ax.m_psz, a2ax.m_szBuffer);
121
124 ok_str(w2ax.m_psz,
"123");
125
126
130 ok_ptr(a2wx.m_psz, a2wx.m_szBuffer);
131
135 ok_ptr(w2wx.m_psz, w2wx.m_szBuffer);
136 }
137
138
139
140
141 {
144 ok_str(a2a2.m_psz, dataA);
145 ok_str(a2a2.m_szBuffer,
"");
146 ok(a2a2.m_psz != dataA,
"a2a2.m_psz == dataA\n");
147 ok(a2a2.m_psz != a2a2.m_szBuffer,
"a2a2.m_psz == a2a2.m_szBuffer\n");
148
151 ok_str(w2a2.m_psz, dataA);
152 ok_str(w2a2.m_szBuffer,
"");
153 ok(w2a2.m_psz != dataA,
"w2a2.m_psz == dataA\n");
154 ok(w2a2.m_psz != w2a2.m_szBuffer,
"w2a2.m_psz == w2a2.m_szBuffer\n");
155
160 ok(a2w2.m_psz != dataW,
"a2w2.m_psz == dataW\n");
161 ok(a2w2.m_psz != a2w2.m_szBuffer,
"a2w2.m_psz == a2w2.m_szBuffer\n");
162
167 ok(w2w2.m_psz != dataW,
"w2w2.m_psz == dataW\n");
168 ok(w2w2.m_psz != w2w2.m_szBuffer,
"w2w2.m_psz == w2w2.m_szBuffer\n");
169 }
170
171
172
173
174 {
177 ok_str(a2a2x.m_psz, dataAX);
178 ok_str(a2a2x.m_szBuffer,
"");
179 ok(a2a2x.m_psz != dataAX,
"a2a2x.m_psz == dataAX\n");
180 ok(a2a2x.m_psz != a2a2x.m_szBuffer,
"a2a2x.m_psz == a2a2x.m_szBuffer\n");
181
184 ok_str(w2a2x.m_psz, dataAX);
185 ok_str(w2a2x.m_szBuffer,
"");
186 ok(w2a2x.m_psz != dataAX,
"w2a2x.m_psz == dataAX\n");
187 ok(w2a2x.m_psz != w2a2x.m_szBuffer,
"w2a2x.m_psz == w2a2x.m_szBuffer\n");
188
193 ok(a2w2x.m_psz != dataWX,
"a2w2x.m_psz == dataWX\n");
194 ok(a2w2x.m_psz != a2w2x.m_szBuffer,
"a2w2x.m_psz == a2w2x.m_szBuffer\n");
195
200 ok(w2w2x.m_psz != dataWX,
"w2w2x.m_psz == dataWX\n");
201 ok(w2w2x.m_psz != w2w2x.m_szBuffer,
"w2w2x.m_psz == w2w2x.m_szBuffer\n");
202 }
203
204
205
206
207 {
210 ok_str(a2ca.m_psz, dataA);
211 ok_ptr(a2ca.m_psz, dataA);
212
216 ok_ptr(w2cw.m_psz, dataW);
217 }
218}
#define ok_int(expression, result)
#define ok_ptr(expression, result)
#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
static const char * w2a(LPCWSTR str)
wchar_t * a2w(char *a, wchar_t *w)