From ffe15fa11a576383a0588bd8e38be182c31afaae Mon Sep 17 00:00:00 2001 From: Echelon9 Date: Sun, 7 Apr 2013 17:14:52 +1000 Subject: [PATCH] More conformant implementation of ExAllocatePool and ExAllocatePoolWithTag --- src/CxbxKrnl/EmuKrnl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CxbxKrnl/EmuKrnl.cpp b/src/CxbxKrnl/EmuKrnl.cpp index e4941db70..c998428cd 100644 --- a/src/CxbxKrnl/EmuKrnl.cpp +++ b/src/CxbxKrnl/EmuKrnl.cpp @@ -1320,7 +1320,7 @@ XBSYSAPI EXPORTNUM(14) xboxkrnl::PVOID NTAPI xboxkrnl::ExAllocatePool ");\n", GetCurrentThreadId(), NumberOfBytes); - PVOID pRet = CxbxMalloc(NumberOfBytes); + PVOID pRet = ExAllocatePoolWithTag(NumberOfBytes, (ULONG)"enoN"); EmuSwapFS(); // Xbox FS @@ -1344,9 +1344,9 @@ XBSYSAPI EXPORTNUM(15) xboxkrnl::PVOID NTAPI xboxkrnl::ExAllocatePoolWithTag DbgPrintf("EmuKrnl (0x%X): ExAllocatePoolWithTag\n" "(\n" " NumberOfBytes : 0x%.08X\n" - " Tag : 0x%.08X\n" + " Tag : 0x%.08X (%s)\n" ");\n", - GetCurrentThreadId(), NumberOfBytes, Tag); + GetCurrentThreadId(), NumberOfBytes, Tag, Tag); // TODO: Actually implement this PVOID pRet = CxbxMalloc(NumberOfBytes);