Skip to content

Commit

Permalink
fix return values
Browse files Browse the repository at this point in the history
  • Loading branch information
lico-n committed Nov 28, 2023
1 parent b3570c2 commit 92a5a98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions module/src/jni/hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ void print_key(uint64_t key) {
LOGI("Extracted Key (hex): 0x%s", uint64_to_hex(parsed_key).c_str());
}

pid_t (*original_initialize_4)(
uint64_t (*original_initialize_4)(
uint64_t key,
uint64_t authentication_file,
uint64_t enableAtomDecryption,
uint64_t enableManaDecryption
);

pid_t replacement_initialize_4(
uint64_t replacement_initialize_4(
uint64_t key,
uint64_t authentication_file,
uint64_t enableAtomDecryption,
Expand All @@ -54,13 +54,13 @@ pid_t replacement_initialize_4(
return original_initialize_4(key, authentication_file, enableAtomDecryption, enableManaDecryption);
}

pid_t (*original_initialize_3)(
uint64_t (*original_initialize_3)(
uint64_t key,
uint64_t enableAtomDecryption,
uint64_t enableManaDecryption
);

pid_t replacement_initialize_3(
uint64_t replacement_initialize_3(
uint64_t key,
uint64_t enableAtomDecryption,
uint64_t enableManaDecryption) {
Expand Down

0 comments on commit 92a5a98

Please sign in to comment.