Skip to content

Commit a74d29e

Browse files
committed
Fix for copying TlspLdrBlock to TlspMmpBlock in MmUserThreadStart
1 parent 2cb5ab0 commit a74d29e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MemoryModule/MmpTls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ DWORD NTAPI MmpUserThreadStart(LPVOID lpThreadParameter) {
207207
RtlCopyMemory(
208208
record->TlspMmpBlock,
209209
record->TlspLdrBlock,
210-
size
210+
size * sizeof(PVOID)
211211
);
212212

213213
NtCurrentTeb()->ThreadLocalStoragePointer = record->TlspMmpBlock;

0 commit comments

Comments
 (0)