From e6bc6243e108f999099da9f720a99c61224df725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Wed, 11 Nov 2015 01:25:40 +0000 Subject: [PATCH] [INTERPRETER] * BUG: Application.Dir is correctly declared now. Consequently, it will work with JIT compiler. git-svn-id: svn://localhost/gambas/trunk@7467 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/gbx/gbx_c_application.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/gbx/gbx_c_application.c b/main/gbx/gbx_c_application.c index 3a7af408f..6fa2969e7 100644 --- a/main/gbx/gbx_c_application.c +++ b/main/gbx/gbx_c_application.c @@ -172,7 +172,7 @@ END_PROPERTY BEGIN_PROPERTY(Application_Env_Count) int n = 0; - + while(environ[n]) n++; @@ -221,7 +221,7 @@ END_METHOD static void init_again(int old_pid) { char old[PATH_MAX]; - + FILE_remove_temp_file(); snprintf(old, sizeof(old),FILE_TEMP_DIR, getuid(), old_pid); rename(old, FILE_make_temp(NULL, NULL)); @@ -325,7 +325,7 @@ GB_DESC NATIVE_App[] = GB_STATIC_PROPERTY_READ("Id", "i", Application_Id), GB_STATIC_PROPERTY_READ("Handle", "i", Application_Id), GB_STATIC_PROPERTY_READ("Version", "s", Application_Version), - GB_STATIC_PROPERTY_READ("Dir", "i", Application_Dir), + GB_STATIC_PROPERTY_READ("Dir", "s", Application_Dir), GB_STATIC_PROPERTY("Daemon", "b", Application_Daemon), GB_STATIC_PROPERTY_READ("Startup", "Class", Application_Startup), GB_STATIC_PROPERTY("Priority", "i", Application_Priority),