Commit Graph

4 Commits

Author SHA1 Message Date
Reinier Torenbeek
ce9abcfff0 Minor fixes in symtest example (#167)
Fixed invocations of `SymGetModuleInfo64` and `SymEnumSymbols`
Tested on x64 only.

Output snippets from `symtest.exe` before fix:

    SymGetModuleInfo64(FFFFFFFFFFFFFFFF, 000000006EBC0000) [64] failed: 87

and

    ===Enum===
    SymEnumSymbols() failed: 318

Output snippets from `symtest.exe` after fix:

    SymGetModuleInfo64(FFFFFFFFFFFFFFFF, 000000006EBC0000) [64] succeeded: 0
    NumSyms:         0
    SymType:         3
    ModuleName:      target64
    ImageName:       target64.dll
    LoadedImageName: target64.dll

and

    ===Enum===
      000000006EBD4A60: __newclmap
      000000006EBD4A60: __newclmap
      000000006EBD2238: __guard_xfg_dispatch_icall_fptr
      000000006EBDDA40: _fltused
      000000006EBD8AC0: __mask_mant
      000000006EBDD000: SelfHidden
      000000006EBC1000: Target
      000000006EBC1060: Hidden
2021-01-27 16:56:32 +00:00
Brian Gianforcaro
244b243d82 Build: Catch incorrect format specifiers with /we4777 and fix issues. (#129)
* Build: Catch incorrect format specifiers with /we4777 and fix issues.

Most of these are using %d for a DWORD when it should be %ld.

* More compilation fixes
2020-08-31 18:33:59 -07:00
Brian Gianforcaro
2c8d0ecc9b Samples: Fix findfunc + symtest samples using incorrect dll name. (#131)
@GladYouLikeIt described the bug in the issue:

> Extend.cpp is built into extend64.dll for x64, and extend86.dll for x86,
> but the code in samples\findfunc\extend.cpp references the dll without
> specifying the DETOURS_BITS in the dll name. DetourFindFunction fails
> at runtime because of this.

@ohuseyinoglu noted the same bug in SymTest.cpp as well.

Fixes #2
2020-08-30 19:45:53 +00:00
Galen Hunt
e5400b4ec5 Initial fork of Detours 4.0 from Detours 3.0 archive. 2016-11-07 17:37:52 -08:00