Skip to content

Commit

Permalink
Fix hooking CreateFileA correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
aldelaro5 committed May 28, 2024
1 parent 0cc0a3e commit c4a5bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/entrypoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ void inject(DoorstopPaths const *paths) {
strcat(default_boot_config_path, TEXT("_Data\\boot.config"));

HOOK_SYS(target_module, CreateFileW, create_file_hook);
HOOK_SYS(target_module, CreateFileW, create_file_hook_narrow);
HOOK_SYS(target_module, CreateFileA, create_file_hook_narrow);
} else {
LOG("The boot.config file won't be overriden because the provided "
"one does not exist: %s",
Expand Down

0 comments on commit c4a5bcc

Please sign in to comment.