Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--features/org.eclipse.equinox.executable.feature/library/eclipse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/eclipse.c b/features/org.eclipse.equinox.executable.feature/library/eclipse.c
index 9ab57f740..d848d03be 100644
--- a/features/org.eclipse.equinox.executable.feature/library/eclipse.c
+++ b/features/org.eclipse.equinox.executable.feature/library/eclipse.c
@@ -416,6 +416,9 @@ static void dummyCallback(void * info) {}
/* vmArgs must be NULL terminated */
JNIEXPORT int run(int argc, _TCHAR* argv[], _TCHAR* vmArgs[])
{
+ /* arg[0] should be the full pathname of this program. */
+ program = _tcsdup( argv[0] );
+
/* Parse command line arguments (looking for the VM to use). */
/* Override configuration file arguments */
parseArgs( &argc, argv );
@@ -500,9 +503,6 @@ static int _run(int argc, _TCHAR* argv[], _TCHAR* vmArgs[])
int launchMode;
int running = 1;
- /* arg[0] should be the full pathname of this program. */
- program = _tcsdup( argv[0] );
-
/* Initialize official program name */
officialName = name != NULL ? _tcsdup( name ) : getDefaultOfficialName();

Back to the top