mirror of
https://github.com/bb107/MemoryModulePP
synced 2026-06-08 13:15:33 +00:00
Fix 32-bit compilation failure
This commit is contained in:
@@ -291,19 +291,20 @@ VOID InitializeWindowsVersion() {
|
||||
|
||||
NTSTATUS MmpAllocateGlobalData() {
|
||||
NTSTATUS status;
|
||||
HANDLE hSection = nullptr;
|
||||
OBJECT_ATTRIBUTES oa;
|
||||
LARGE_INTEGER li;
|
||||
WCHAR buffer[128];
|
||||
HANDLE hSection = nullptr;
|
||||
UNICODE_STRING us{};
|
||||
PVOID BaseAddress = 0;
|
||||
SIZE_T ViewSize = 0;
|
||||
WCHAR buffer[128];
|
||||
PTEB teb = NtCurrentTeb();
|
||||
|
||||
swprintf_s(
|
||||
buffer,
|
||||
L"\\Sessions\\%d\\BaseNamedObjects\\MMPP*%08X",
|
||||
L"\\Sessions\\%d\\BaseNamedObjects\\MMPP*%p",
|
||||
NtCurrentPeb()->SessionId,
|
||||
(unsigned int)(ULONG_PTR)NtCurrentProcessId()
|
||||
(PVOID)(~(ULONG_PTR)teb->ClientId.UniqueProcess ^ (ULONG_PTR)teb->ProcessEnvironmentBlock->ProcessHeap)
|
||||
);
|
||||
|
||||
RtlInitUnicodeString(&us, buffer);
|
||||
|
||||
Reference in New Issue
Block a user