mirror of
https://github.com/bb107/MemoryModulePP
synced 2026-06-08 13:15:33 +00:00
Add MmpTlsCleanup routine.
This commit is contained in:
@@ -110,7 +110,9 @@ static NTSTATUS NTAPI RtlFindLdrpHandleTlsData10() {
|
||||
BYTE Bytes[4];
|
||||
DWORD Dword;
|
||||
};
|
||||
Converter ExceptionBlockAddress{ .Dword = DWORD(ExceptionBlock - LPBYTE(DllBase)) };
|
||||
Converter ExceptionBlockAddress{}; // { .Dword = DWORD(ExceptionBlock - LPBYTE(DllBase)) };
|
||||
ExceptionBlockAddress.Dword = DWORD(ExceptionBlock - LPBYTE(DllBase));
|
||||
|
||||
SearchContext.Result = nullptr;
|
||||
SearchContext.PatternSize = 4;
|
||||
SearchContext.SearchPattern = ExceptionBlockAddress.Bytes;
|
||||
@@ -131,7 +133,7 @@ static NTSTATUS NTAPI RtlFindLdrpHandleTlsData10() {
|
||||
LdrpHandleTlsBlock--;
|
||||
}
|
||||
LdrpHandleTlsBlock++;
|
||||
LdrpHandleTlsData = LdrpHandleTlsDataBlock;
|
||||
LdrpHandleTlsData = LdrpHandleTlsBlock;
|
||||
return STATUS_SUCCESS;
|
||||
#else
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
@@ -192,6 +194,10 @@ BOOL NTAPI MmpTlsInitialize() {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
VOID NTAPI MmpTlsCleanup() {
|
||||
;
|
||||
}
|
||||
|
||||
NTSTATUS NTAPI MmpReleaseTlsEntry(_In_ PLDR_DATA_TABLE_ENTRY lpModuleEntry) {
|
||||
typedef NTSTATUS(__stdcall* STDCALL)(PLDR_DATA_TABLE_ENTRY, PVOID*);
|
||||
typedef NTSTATUS(__thiscall* THISCALL)(PLDR_DATA_TABLE_ENTRY, PVOID*);
|
||||
|
||||
Reference in New Issue
Block a user