Skip to content

Commit

Permalink
forgot the getPVar wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
YSaxon committed Jun 14, 2024
1 parent f63f851 commit 000d350
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,8 @@ void parseInitJNI(char* initJNICommand) {
printf(" [+] Found JNI_OnLoad, attempting to call\n");
onLoadFunc(vm, NULL);

setVar(vmStr, (void*)*vm);
setVar(envStr, (void*)*env);
setVar(vmStr, getPVar(*vm));
setVar(envStr, getPVar(*env));
}

typedef bool (*SpecialSignalHandlerFn)(int, siginfo_t*, void*);
Expand Down
2 changes: 1 addition & 1 deletion parse_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "parse_address.h"
#include "shims.h"

ArgInfo* getPVar(void* address) {
ArgInfo* getPVar(const void* address) {
ArgInfo* var = (ArgInfo*)calloc(1, sizeof(ArgInfo));
var->type = TYPE_VOIDPOINTER;
var->explicitType = true;
Expand Down

0 comments on commit 000d350

Please sign in to comment.