From 3ade1f38ab222fad064e12732bbfefd631e8f5e1 Mon Sep 17 00:00:00 2001 From: Yaakov Saxon Date: Fri, 14 Jun 2024 14:52:10 -0400 Subject: [PATCH] move jvm init out of if statement --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index d66659b..de1c268 100644 --- a/main.c +++ b/main.c @@ -604,8 +604,8 @@ typedef int (*JNI_OnLoadFunc)(void* vm, void* reserved); int init_jvm(JavaVM **p_vm, JNIEnv **p_env, size_t argc, char** argv){ if (argc > 0) { printf(" [!] Warning: Arguments are not supported on this faker method\n"); - jni_init(); } + jni_init(); *p_vm = &jvm; *p_env = &jni; }