File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,9 @@ static NTSTATUS NTAPI RtlFindLdrpHandleTlsData10() {
110110 BYTE Bytes[4 ];
111111 DWORD Dword;
112112 };
113- Converter ExceptionBlockAddress{ .Dword = DWORD (ExceptionBlock - LPBYTE (DllBase)) };
113+ Converter ExceptionBlockAddress{}; // { .Dword = DWORD(ExceptionBlock - LPBYTE(DllBase)) };
114+ ExceptionBlockAddress.Dword = DWORD (ExceptionBlock - LPBYTE (DllBase));
115+
114116 SearchContext.Result = nullptr ;
115117 SearchContext.PatternSize = 4 ;
116118 SearchContext.SearchPattern = ExceptionBlockAddress.Bytes ;
@@ -131,7 +133,7 @@ static NTSTATUS NTAPI RtlFindLdrpHandleTlsData10() {
131133 LdrpHandleTlsBlock--;
132134 }
133135 LdrpHandleTlsBlock++;
134- LdrpHandleTlsData = LdrpHandleTlsDataBlock ;
136+ LdrpHandleTlsData = LdrpHandleTlsBlock ;
135137 return STATUS_SUCCESS;
136138#else
137139 return STATUS_NOT_SUPPORTED;
@@ -192,6 +194,10 @@ BOOL NTAPI MmpTlsInitialize() {
192194 return TRUE ;
193195}
194196
197+ VOID NTAPI MmpTlsCleanup () {
198+ ;
199+ }
200+
195201NTSTATUS NTAPI MmpReleaseTlsEntry (_In_ PLDR_DATA_TABLE_ENTRY lpModuleEntry) {
196202 typedef NTSTATUS (__stdcall* STDCALL)(PLDR_DATA_TABLE_ENTRY, PVOID*);
197203 typedef NTSTATUS (__thiscall* THISCALL)(PLDR_DATA_TABLE_ENTRY, PVOID*);
You can’t perform that action at this time.
0 commit comments