diff options
author | Andrew Niefer | 2007-10-05 18:22:41 +0000 |
---|---|---|
committer | Andrew Niefer | 2007-10-05 18:22:41 +0000 |
commit | 2cb8cc250a06e04d4e237eb33b60a2a07ec8d9e6 (patch) | |
tree | 379901e355918ff45335fdc49324d5870b9f34fd /bundles/org.eclipse.equinox.executable/library/eclipse.c | |
parent | 4e3aa09c05ebda8375c36b7c0aed0312fc787520 (diff) | |
download | rt.equinox.framework-2cb8cc250a06e04d4e237eb33b60a2a07ec8d9e6.tar.gz rt.equinox.framework-2cb8cc250a06e04d4e237eb33b60a2a07ec8d9e6.tar.xz rt.equinox.framework-2cb8cc250a06e04d4e237eb33b60a2a07ec8d9e6.zip |
bug 201414
Diffstat (limited to 'bundles/org.eclipse.equinox.executable/library/eclipse.c')
-rw-r--r-- | bundles/org.eclipse.equinox.executable/library/eclipse.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.executable/library/eclipse.c b/bundles/org.eclipse.equinox.executable/library/eclipse.c index 86b58bf82..c5b9ecc48 100644 --- a/bundles/org.eclipse.equinox.executable/library/eclipse.c +++ b/bundles/org.eclipse.equinox.executable/library/eclipse.c @@ -362,9 +362,6 @@ JNIEXPORT int run(int argc, _TCHAR* argv[], _TCHAR* vmArgs[]) /* Initialize official program name */ officialName = name != NULL ? _tcsdup( name ) : getDefaultOfficialName(); - - /* Initialize the window system. */ - initWindowSystem( &argc, argv, !noSplash ); /* Find the directory where the Eclipse program is installed. */ programDir = getProgramDir(); @@ -951,7 +948,8 @@ _TCHAR* getProgramDir( ) { _TCHAR* ch; _TCHAR* programDir; - + if (program == NULL) + return NULL; programDir = malloc( (_tcslen( program ) + 1) * sizeof(_TCHAR) ); _tcscpy( programDir, program ); ch = lastDirSeparator( programDir ); |