Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraTenshi committed Jul 22, 2024
1 parent 4780bd8 commit 311c83b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions zig-bait/hook_manager.zig
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,14 @@ pub const HookManager = struct {
self.size += 1;
switch (method) {
inline .detour => |opt| {
return self.hooks.append(detour.init(
self.alloc,
opt.source.address,
opt.target.address,
opt.target.len,
));
_ = opt; // autofix
std.debug.assert(false); // Detour is not yet supported.
// return self.hooks.append(detour.init(
// self.alloc,
// opt.source.address,
// opt.target.address,
// opt.target.len,
// ));
},
inline .vmt => |opt| {
for (opt.positions, opt.targets) |pos, ptr| {
Expand Down Expand Up @@ -193,7 +195,7 @@ pub const HookManager = struct {

const t = std.testing;
test "safe vmt" {
t.refAllDecls(safe_vmt);
if (@import("builtin").os.tag == .windows) t.refAllDecls(safe_vmt);
}

test "vmt" {
Expand Down

0 comments on commit 311c83b

Please sign in to comment.