66{
72
75
76 if (!pRtlpEnsureBufferSize)
77 {
78 skip(
"No RtlpEnsureBufferSize\n");
79 return;
80 }
81
82 memset(StaticBuf, 0xba,
sizeof(StaticBuf));
83 RtlInitBuffer(&
Buffer, StaticBuf,
sizeof(StaticBuf));
84
85
87
88
90 {
97 }
98
105
112
119
126
133
134
139
140 if (SkipHeapCheck)
141 skip(
"Unable to verify the heap used\n");
142
143
145 if (!SkipHeapCheck)
147 ok(!
memcmp(
Buffer.Buffer, StaticBuf,
sizeof(StaticBuf)),
"Expected First 4 bytes to be the same!\n");
152
154 if (!SkipHeapCheck)
156 ok(
memcmp(
Buffer.Buffer, StaticBuf,
sizeof(StaticBuf)),
"Expected First 4 bytes to be different!\n");
161
162
164 if (!SkipHeapCheck)
166 ok(
memcmp(
Buffer.Buffer, StaticBuf,
sizeof(StaticBuf)),
"Expected First 4 bytes to be different!\n");
171}
std::map< E_MODULE, HMODULE > mod
static BOOL IsBlockFromHeap(HANDLE hHeap, PVOID ptr)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define ok_ntstatus(status, expected)
#define ok_int(expression, result)
#define ok_ptr(expression, result)
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
#define GetProcAddress(x, y)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
#define RTL_SKIP_BUFFER_COPY
#define UNICODE_STRING_MAX_BYTES
#define STATUS_INVALID_PARAMETER