mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +00:00
[KMTESTS:MM]
- Fix 64-bit warnings. Patch by Nikolay Borisov. ROSTESTS-112 #resolve svn path=/trunk/; revision=58940
This commit is contained in:
parent
2cc6ced701
commit
5cd67c3c36
3 changed files with 5 additions and 5 deletions
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
/* These are being used in ZwMapViewOfSection as well */
|
/* These are being used in ZwMapViewOfSection as well */
|
||||||
const char TestString[] = "TheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedThe";
|
const char TestString[] = "TheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedThe";
|
||||||
const SIZE_T TestStringSize = sizeof(TestString);
|
const ULONG TestStringSize = sizeof(TestString);
|
||||||
|
|
||||||
VOID Test_ZwAllocateVirtualMemory(VOID);
|
VOID Test_ZwAllocateVirtualMemory(VOID);
|
||||||
|
|
||||||
typedef struct _TEST_CONTEXT
|
typedef struct _TEST_CONTEXT
|
||||||
{
|
{
|
||||||
HANDLE ProcessHandle;
|
HANDLE ProcessHandle;
|
||||||
ULONG RegionSize;
|
SIZE_T RegionSize;
|
||||||
ULONG AllocationType;
|
ULONG AllocationType;
|
||||||
ULONG Protect;
|
ULONG Protect;
|
||||||
PVOID Bases[1024];
|
PVOID Bases[1024];
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#define NO_HANDLE_CLOSE -998
|
#define NO_HANDLE_CLOSE -998
|
||||||
#define _4mb 4194304
|
#define _4mb 4194304
|
||||||
extern const char TestString[];
|
extern const char TestString[];
|
||||||
extern const SIZE_T TestStringSize;
|
extern const ULONG TestStringSize;
|
||||||
static UNICODE_STRING FileReadOnlyPath = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32\\ntdll.dll");
|
static UNICODE_STRING FileReadOnlyPath = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32\\ntdll.dll");
|
||||||
static UNICODE_STRING WritableFilePath = RTL_CONSTANT_STRING(L"\\SystemRoot\\kmtest-MmSection.txt");
|
static UNICODE_STRING WritableFilePath = RTL_CONSTANT_STRING(L"\\SystemRoot\\kmtest-MmSection.txt");
|
||||||
static UNICODE_STRING CalcImgPath = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32\\calc.exe");
|
static UNICODE_STRING CalcImgPath = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32\\calc.exe");
|
||||||
|
|
|
@ -16,7 +16,7 @@ static UNICODE_STRING NtosImgPath = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32
|
||||||
static UNICODE_STRING WritableFilePath = RTL_CONSTANT_STRING(L"\\SystemRoot\\kmtest-MmSection.txt");
|
static UNICODE_STRING WritableFilePath = RTL_CONSTANT_STRING(L"\\SystemRoot\\kmtest-MmSection.txt");
|
||||||
static UNICODE_STRING SharedSectionName = RTL_CONSTANT_STRING(L"\\BaseNamedObjects\\kmtest-SharedSection");
|
static UNICODE_STRING SharedSectionName = RTL_CONSTANT_STRING(L"\\BaseNamedObjects\\kmtest-SharedSection");
|
||||||
extern const char TestString[];
|
extern const char TestString[];
|
||||||
extern const SIZE_T TestStringSize;
|
extern const ULONG TestStringSize;
|
||||||
static OBJECT_ATTRIBUTES NtdllObject;
|
static OBJECT_ATTRIBUTES NtdllObject;
|
||||||
static OBJECT_ATTRIBUTES KmtestFileObject;
|
static OBJECT_ATTRIBUTES KmtestFileObject;
|
||||||
static OBJECT_ATTRIBUTES NtoskrnlFileObject;
|
static OBJECT_ATTRIBUTES NtoskrnlFileObject;
|
||||||
|
@ -266,7 +266,7 @@ AdvancedErrorChecks(HANDLE FileHandleReadOnly, HANDLE FileHandleWriteOnly)
|
||||||
|
|
||||||
static
|
static
|
||||||
SIZE_T
|
SIZE_T
|
||||||
CompareFileContents(HANDLE FileHandle, SIZE_T BufferLength, PVOID Buffer)
|
CompareFileContents(HANDLE FileHandle, ULONG BufferLength, PVOID Buffer)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
LARGE_INTEGER ByteOffset;
|
LARGE_INTEGER ByteOffset;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue