Skip to content

Commit

Permalink
merge code from Detours 3.0 Build_343
Browse files Browse the repository at this point in the history
Detours 4.0.1 looks like it's Detours 3.0 build_339 changed its name by comparing the code and looking at git commit logs, so the code in follow version need to be merged.
  • Loading branch information
sonyps5201314 committed Sep 4, 2020
1 parent 8d38ea6 commit a18aeee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CREDITS.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ The following individuals have helped identify specific bugs and improvements
in Detours. The entire Detours community has benefited from their help.
==============================================================================

* Jay Krell: Identified error in DetourFindPayload that caused a
incorrect failure when pcbData is NULL. (Build_342)

* Jay Krell: Identified issue with VirtualSize == 0 files created in
NT 3.1 images. (Build_339)

Expand Down
4 changes: 2 additions & 2 deletions src/modules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,9 +803,9 @@ PVOID WINAPI DetourFindPayload(_In_opt_ HMODULE hModule,

if (pcbData) {
*pcbData = pSection->cbBytes - sizeof(*pSection);
SetLastError(NO_ERROR);
return (PBYTE)(pSection + 1);
}
SetLastError(NO_ERROR);
return (PBYTE)(pSection + 1);
}

pbData = (PBYTE)pSection + pSection->cbBytes;
Expand Down

0 comments on commit a18aeee

Please sign in to comment.