Apply clang-format across the whole tree
Run clang-format (the repo's .clang-format: LLVM base, 120 cols, tabs, Allman functions) over every source file so the tree is formatter-clean. Whitespace only -- no behavior change; full x64 + x86 suites pass. Also set SortIncludes: false in .clang-format. Windows include order is load-bearing (windows.h must precede tlhelp32.h / mmreg.h / xinput.h / dinput.h; winsock2.h must precede windows.h), and the default alphabetical sort reorders tlhelp32.h ahead of windows.h -- a build break. Leaving order alone keeps the manual, correct grouping.
This commit is contained in:
@@ -23,8 +23,7 @@
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
namespace coop::hook
|
||||
{
|
||||
namespace coop::hook {
|
||||
|
||||
// Arm `detour` over `target` in `dst`: create it once (StartDisabled) if empty, then enable. Calling
|
||||
// this again after a remove just re-enables the SAME hook (no recreate -> the trampoline is never
|
||||
@@ -36,8 +35,7 @@ inline void install_inline(safetyhook::InlineHook& dst, void* target, void* deto
|
||||
{
|
||||
dst = safetyhook::create_inline(target, detour, safetyhook::InlineHook::StartDisabled);
|
||||
}
|
||||
if (dst && !dst.enable())
|
||||
{
|
||||
if (dst && !dst.enable()) {
|
||||
OutputDebugStringA("coop: SafetyHook InlineHook::enable() failed during install\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user