11{
14 ULONG NumberOfSections;
20 struct
21 {
26 {
27 { 0, 0, 0 },
28 { 0xfff, 0, 0 },
29 { 0x1000, 0x3000, 0 },
30 { 0x1001, 0x3001, 0 },
31 { 0x1fff, 0x3fff, 0 },
32 { 0x2000, 0, 0 },
33 { 0x2fff, 0, 0 },
34 { 0x3000, 0x4000, 3 },
35 { 0x3fff, 0x4fff, 3 },
36 { 0x4000, 0x5000, 3 },
37 { 0x4fff, 0x5fff, 3 },
38 { 0x5000, 0, 0 },
39 { 0x5fff, 0, 0 },
40 { 0x6000, 0, 0 },
41 { 0x6fff, 0, 0 },
42 { 0x7000, 0x7000, 5 },
43 { 0x7fff, 0x7fff, 5 },
44 { 0x8000, 0x9000, 7 },
45 { 0x8fff, 0x9fff, 7 },
46 { 0x9000, 0x8000, 6 },
47 { 0x9fff, 0x8fff, 6 },
48 };
50
51 NumberOfSections = 8;
55 if (!NtHeader)
56 {
57 skip(
"Could not allocate %lu bytes\n", ImageSize);
58 return;
59 }
60
102
104
108
111
114
118 ok(OutSection ==
NULL, "OutSection = %
p\
n", OutSection);
119
120 OutSection = (
PVOID)1;
124
126 {
127
135
136
142 {
144 ok(OutSection ==
NULL,
"[0x%lx] OutSection = %p (%Id)\n",
Tests[
i].Rva, OutSection, OutSection - Section);
145 }
146 else
147 {
149 ok(OutSection == &Section[
Tests[
i].SectionIndex],
"[0x%lx] OutSection = %p (%Id)\n",
Tests[
i].Rva, OutSection, OutSection - Section);
150 }
151
152
153 OutSection = Section;
158 {
160 ok(OutSection == Section,
"[0x%lx] OutSection = %p (%Id)\n",
Tests[
i].Rva, OutSection, OutSection - Section);
161 }
162 else
163 {
165 ok(OutSection == &Section[
Tests[
i].SectionIndex],
"[0x%lx] OutSection = %p (%Id)\n",
Tests[
i].Rva, OutSection, OutSection - Section);
166 }
167
168
169 OutSection = &DummySection;
174 {
176 ok(OutSection == &DummySection,
"[0x%lx] OutSection = %p (%Id)\n",
Tests[
i].Rva, OutSection, OutSection - Section);
177 }
178 else
179 {
181 ok(OutSection == &Section[
Tests[
i].SectionIndex],
"[0x%lx] OutSection = %p (%Id)\n",
Tests[
i].Rva, OutSection, OutSection - Section);
182 }
183 }
184
186}
#define EndSeh(ExpectedStatus)
static VOID FreeGuarded(_In_ PVOID Pointer)
static PVOID AllocateGuarded(_In_ SIZE_T SizeRequested)
GLint GLint GLint GLint GLint x
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)