65{
70 CHAR FileAndLine[128];
72
76#ifdef _WIN64
77
80 "Padding is 0x%lx\n", (&
Iterator.Stamp)[1]);
81#endif
82
83 for (
i = 0;
i < NumRanges;
i++)
84 {
86 {
88
89
90 KmtOk(
Iterator.RangeListHead == &RangeList->ListHead, FileAndLine,
91 "[%lu] Iterator.RangeListHead = %p, expected %p\n",
i,
Iterator.RangeListHead, &RangeList->ListHead);
93 "[%lu] Iterator.MergedHead = %p\n",
i,
Iterator.MergedHead);
95 "[%lu] Iterator.Current = %p, expected %p\n",
i,
Iterator.Current,
Range);
97 "[%lu] Iterator.Stamp = %lu, expected %lu\n",
i,
Iterator.Stamp, RangeList->Stamp);
98 }
99
102 }
103
104
106 "Status = 0x%lx after enumeration\n",
Status);
108 "[%lu] Range = %p\n",
i,
Range);
109 KmtOk(
Iterator.RangeListHead == &RangeList->ListHead, FileAndLine,
110 "[%lu] Iterator.RangeListHead = %p, expected %p\n",
i,
Iterator.RangeListHead, &RangeList->ListHead);
112 "[%lu] Iterator.MergedHead = %p\n",
i,
Iterator.MergedHead);
114 "[%lu] Iterator.Current = %p\n",
i,
Iterator.Current);
116 "[%lu] Iterator.Stamp = %lu, expected %lu\n",
i,
Iterator.Stamp, RangeList->Stamp);
117
118
122 "Status = 0x%lx after enumeration\n",
Status);
124 "[%lu] Range = %p\n",
i,
Range);
125 KmtOk(
Iterator.RangeListHead == &RangeList->ListHead, FileAndLine,
126 "[%lu] Iterator.RangeListHead = %p, expected %p\n",
i,
Iterator.RangeListHead, &RangeList->ListHead);
128 "[%lu] Iterator.MergedHead = %p\n",
i,
Iterator.MergedHead);
130 "[%lu] Iterator.Current = %p\n",
i,
Iterator.Current);
132 "[%lu] Iterator.Stamp = %lu, expected %lu\n",
i,
Iterator.Stamp, RangeList->Stamp);
133}
static void ExpectRange(_In_ PCSTR File, _In_ INT Line, _In_ ULONG Index, _In_ const RTL_RANGE *ActualRange, _In_ const RTL_RANGE *ExpectedRange)
#define NT_SUCCESS(StatCode)
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)
BOOLEAN BOOLEAN VOID VOID BOOLEAN BOOLEAN KmtSkip(INT Condition, PCSTR FileAndLine, PCSTR Format,...) KMT_FORMAT(ms_printf
#define KmtInvalidPointer
NTSYSAPI NTSTATUS NTAPI RtlGetNextRange(_Inout_ PRTL_RANGE_LIST_ITERATOR Iterator, _Outptr_ PRTL_RANGE *Range, _In_ BOOLEAN MoveForwards)
NTSYSAPI NTSTATUS NTAPI RtlGetFirstRange(_In_ PRTL_RANGE_LIST RangeList, _Out_ PRTL_RANGE_LIST_ITERATOR Iterator, _Outptr_ PRTL_RANGE *Range)
#define RTL_SIZEOF_THROUGH_FIELD(type, field)
#define STATUS_NO_MORE_ENTRIES
_In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR Iterator