61{
66
68 RTL_MEMORY_STREAM previous;
69
71
75
77
79
80 for (
i = 0;
i <
sizeof(buffer2);
i++)
81 {
83 }
84
86 memset(&previous, 0x00,
sizeof(previous));
87
91
95
97
99
104
106
110
114
118
124
126
131
136
142
146
148
153
158
163
168
173
178
180
185
190
195
197 {
198 bytesRead += 40;
199 for (
i = 0;
i < bytesRead;
i++)
200 {
201 ok(
buffer[
i] ==
i,
"Buffer[%lu] contains a wrong number %u (expected %lu).\n",
i,
buffer[
i],
i);
202 }
203 }
204
206 "stream.Current points to the wrong address 0x%p (expected 0x%p)\n",
208 ok(
stream.Start == buffer2,
"stream.Start was changed unexpectedly\n");
209 ok(
stream.End == buffer2 +
sizeof(buffer2),
"stream.End was changed unexpectedly\n");
210
212
213 size.QuadPart = 0x9090909090909090ull;
214
221
228
230
237
239
246
248
255
262
266#ifdef _WIN64
268 ok(
size.QuadPart == 0x9090909090909090ull,
"Seek modified the new location in an error (0x%08lx,0x%08lx).\n",
size.HighPart,
size.LowPart);
269#else
270 ok(
res ==
S_OK,
"Seek to IStream returned wrong hResult: 0x%08lx.\n",
res);
271 ok(
size.QuadPart == 0,
"Seek new location unexpected value: 0x%08lx.\n",
size.LowPart);
272#endif
274
275#ifdef _WIN64
282#endif
283
284 size.QuadPart = 0x9090909090909090ull;
285
292
296#ifdef _WIN64
298 ok(
size.QuadPart == 0x9090909090909090ull,
"Seek modified the new location in an error (0x%08lx,0x%08lx).\n",
size.HighPart,
size.LowPart);
299#else
300 ok(
res ==
S_OK,
"Seek to IStream returned wrong hResult: 0x%08lx.\n",
res);
301 ok(
size.QuadPart == 0,
"Seek new location unexpected value: 0x%08lx.\n",
size.LowPart);
302#endif
304
310
314
320
322
324
326
328 {
329 for (
i = 0;
i < bytesRead;
i++)
330 {
331 ok(
buffer[
i] == (
i + 40),
"Buffer[%lu] contains a wrong number %u (expected %lu).\n",
i,
buffer[
i],
i + 40);
332 }
333 }
334
336 "stream.Current points to the wrong address 0x%p (expected 0x%p)\n",
338 ok(
stream.Start == buffer2,
"stream.Start was changed unexpectedly\n");
339 ok(
stream.End == buffer2 +
sizeof(buffer2),
"stream.End was changed unexpectedly\n");
340
342
344
345 ok(
res == 1,
"Release to IStream returned wrong hResult: 0x%08lx.\n",
res);
346
347 ok(
stream.RefCount == 1,
"RefCount has a wrong value: %ld (expected %d).\n",
stream.RefCount, 1);
348
350
351 ok(
res ==
S_OK,
"Release to IStream returned wrong hResult: 0x%08lx.\n",
res);
352
353 ok(
stream.RefCount == 0,
"RefCount has a wrong value: %ld (expected %d).\n",
stream.RefCount, 0);
354
356}
VOID NTAPI CustomFinalReleaseMemoryStream(PRTL_MEMORY_STREAM stream)
BOOL CompareStructsAndSaveForLater(PRTL_MEMORY_STREAM pold, PRTL_MEMORY_STREAM pnew, PSTR at)
basic_istream< char, char_traits< char > > istream
#define EndSeh(ExpectedStatus)
GLint GLint GLint GLint GLint x
GLboolean GLboolean GLboolean GLboolean a
GLsizei const GLfloat * points
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
_CRTIMP void __cdecl unexpected(void)
VOID NTAPI RtlInitMemoryStream(_Out_ PRTL_MEMORY_STREAM Stream)
static HRESULT QueryInterface(REFIID, void **)
static ULONG WINAPI AddRef(IStream *iface)
#define STATUS_ACCESS_VIOLATION
#define new(TYPE, numElems)
#define STG_E_INVALIDPOINTER
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList