Commit f109e89
Fix + Tests: Add more tests covering the modules API, fix error handling bug that were found. (#177)
* Fix: Handle more error cases in module API.
- `DetoursFindFunction` wasn't gracefully handling NULL function name.
- `DetourEnumerateModules` wasn't resetting GLE on success.
- `DetourEnumerateExports` wasn't gracefully handling NULL export callback.
- `DetourEnumerateImports` wasn't gracefully handling NULL arguments.
* Tests: Add more tests covering the modules API.
Test basic functionality and error handling of the Detours Module API.
* DetourLoadImageHlp
* DetourFindFunction
* DetourEnumerateModules
* DetourEnumerateExports
* DetourEnumerateImports
* DetourGetSizeOfPayloads
* DetourFindPayload
* DetourFindPayloadEx
* DetourRestoreAfterWithEx1 parent ebbf721 commit f109e89
2 files changed
+549
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
145 | 150 | | |
146 | 151 | | |
147 | 152 | | |
| |||
277 | 282 | | |
278 | 283 | | |
279 | 284 | | |
| 285 | + | |
280 | 286 | | |
281 | 287 | | |
282 | 288 | | |
| |||
456 | 462 | | |
457 | 463 | | |
458 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
459 | 470 | | |
460 | 471 | | |
461 | 472 | | |
| |||
658 | 669 | | |
659 | 670 | | |
660 | 671 | | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
661 | 677 | | |
662 | 678 | | |
663 | 679 | | |
| |||
0 commit comments