This commit is contained in:
RSDuck 2024-10-31 21:32:36 +01:00
parent c1f43a66c2
commit a3ea5def4a

View File

@ -743,11 +743,11 @@ void ARMJIT_Memory::RegisterFaultHandler()
ExceptionHandlerHandle = AddVectoredExceptionHandler(1, ExceptionHandler); ExceptionHandlerHandle = AddVectoredExceptionHandler(1, ExceptionHandler);
KernelBaseDll = LoadLibrary("KernelBase.dll"); KernelBaseDll = LoadLibrary("KernelBase.dll");
/* if (KernelBaseDll) if (KernelBaseDll)
{ {
virtualAlloc2Ptr = reinterpret_cast<VirtualAlloc2Type>(GetProcAddress(KernelBaseDll, "VirtualAlloc2")); virtualAlloc2Ptr = reinterpret_cast<VirtualAlloc2Type>(GetProcAddress(KernelBaseDll, "VirtualAlloc2"));
mapViewOfFile3Ptr = reinterpret_cast<MapViewOfFile3Type>(GetProcAddress(KernelBaseDll, "MapViewOfFile3")); mapViewOfFile3Ptr = reinterpret_cast<MapViewOfFile3Type>(GetProcAddress(KernelBaseDll, "MapViewOfFile3"));
}*/ }
if (!virtualAlloc2Ptr) if (!virtualAlloc2Ptr)
{ {