14 ULONG NumberOfSections;
29 { 0x1000, 0x3000, 0 },
30 { 0x1001, 0x3001, 0 },
31 { 0x1fff, 0x3fff, 0 },
34 { 0x3000, 0x4000, 3 },
35 { 0x3fff, 0x4fff, 3 },
36 { 0x4000, 0x5000, 3 },
37 { 0x4fff, 0x5fff, 3 },
42 { 0x7000, 0x7000, 5 },
43 { 0x7fff, 0x7fff, 5 },
44 { 0x8000, 0x9000, 7 },
45 { 0x8fff, 0x9fff, 7 },
46 { 0x9000, 0x8000, 6 },
47 { 0x9fff, 0x8fff, 6 },
57 skip(
"Could not allocate %lu bytes\n", ImageSize);
110 ok(Va ==
NULL,
"Va = %p\n", Va);
113 ok(Va ==
NULL,
"Va = %p\n", Va);
117 ok(Va ==
NULL,
"Va = %p\n", Va);
118 ok(OutSection ==
NULL,
"OutSection = %p\n", OutSection);
120 OutSection = (
PVOID)1;
131 if (
Tests[
i].VaOffset == 0)
141 if (
Tests[
i].VaOffset == 0)
144 ok(OutSection ==
NULL,
"[0x%lx] OutSection = %p (%Id)\n",
Tests[
i].Rva, OutSection, OutSection - Section);
149 ok(OutSection == &Section[
Tests[
i].SectionIndex],
"[0x%lx] OutSection = %p (%Id)\n",
Tests[
i].Rva, OutSection, OutSection - Section);
153 OutSection = Section;
157 if (
Tests[
i].VaOffset == 0)
160 ok(OutSection == Section,
"[0x%lx] OutSection = %p (%Id)\n",
Tests[
i].Rva, OutSection, OutSection - Section);
165 ok(OutSection == &Section[
Tests[
i].SectionIndex],
"[0x%lx] OutSection = %p (%Id)\n",
Tests[
i].Rva, OutSection, OutSection - Section);
169 OutSection = &DummySection;
173 if (
Tests[
i].VaOffset == 0)
176 ok(OutSection == &DummySection,
"[0x%lx] OutSection = %p (%Id)\n",
Tests[
i].Rva, OutSection, OutSection - Section);
181 ok(OutSection == &Section[
Tests[
i].SectionIndex],
"[0x%lx] OutSection = %p (%Id)\n",
Tests[
i].Rva, OutSection, OutSection - Section);
#define EndSeh(ExpectedStatus)
static VOID FreeGuarded(_In_ PVOID Pointer)
static PVOID AllocateGuarded(_In_ SIZE_T SizeRequested)
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 RtlFillMemory(Dest, Length, Fill)
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
#define STATUS_ACCESS_VIOLATION
struct _IMAGE_SECTION_HEADER * PIMAGE_SECTION_HEADER
struct _IMAGE_SECTION_HEADER IMAGE_SECTION_HEADER
#define FIELD_OFFSET(t, f)