Skip to content

Commit d53fc95

Browse files
committed
fix broken code - how did this work
1 parent e8c25cb commit d53fc95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NativeCore/Windows/EnumerateRemoteSectionsAndModules.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static DWORD EnumerateRemoteModulesNative(HANDLE process, Proc proc)
5050
return error;
5151

5252
PPEB_LDR_DATA ldr;
53-
auto success = ReadRemoteMemory(process, ppeb->Ldr, &ldr, 0, sizeof(ldr));
53+
auto success = ReadRemoteMemory(process, &ppeb->Ldr, &ldr, 0, sizeof(ldr));
5454
if (!success)
5555
return ERROR_READ_FAULT; // we seem to swallow the error anyways, might aswell give a distinctive one back
5656

0 commit comments

Comments
 (0)