mirror of
https://github.com/everdox/InfinityHook.git
synced 2026-10-16 21:21:12 +08:00
Merge pull request #8 from BerkanYildiz/patch-1
Storing variable before freeing the buffer.
This commit is contained in:
@@ -94,6 +94,8 @@ PVOID ImgGetBaseAddress(
|
||||
{
|
||||
*SizeOfImage = ModuleInformation->ImageSize;
|
||||
}
|
||||
|
||||
PVOID ImageBase = ModuleInformation->ImageBase;
|
||||
|
||||
//
|
||||
// Free the buffer. Thanks to @tandasat for catching my
|
||||
@@ -101,7 +103,7 @@ PVOID ImgGetBaseAddress(
|
||||
//
|
||||
ExFreePool(Buffer);
|
||||
|
||||
return ModuleInformation->ImageBase;
|
||||
return ImageBase;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user