diff options
author | Andrew Niefer | 2009-12-14 19:49:13 +0000 |
---|---|---|
committer | Andrew Niefer | 2009-12-14 19:49:13 +0000 |
commit | 847254cb34de8dcff6e28485a64b2ac051d4da99 (patch) | |
tree | 956a7a46d544159f642f358b2337850f0de7239a | |
parent | 9e59c95ab5ce263e90393fc3288fc871b512fdd9 (diff) | |
download | rt.equinox.framework-847254cb34de8dcff6e28485a64b2ac051d4da99.tar.gz rt.equinox.framework-847254cb34de8dcff6e28485a64b2ac051d4da99.tar.xz rt.equinox.framework-847254cb34de8dcff6e28485a64b2ac051d4da99.zip |
bug 297631 - fix win32 compilation
-rw-r--r-- | bundles/org.eclipse.equinox.executable/library/eclipseJNI.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.executable/library/eclipseJNI.c b/bundles/org.eclipse.equinox.executable/library/eclipseJNI.c index 3b85e0d2e..845c646c6 100644 --- a/bundles/org.eclipse.equinox.executable/library/eclipseJNI.c +++ b/bundles/org.eclipse.equinox.executable/library/eclipseJNI.c @@ -146,8 +146,8 @@ static void setLibraryLocation(JNIEnv * env, jobject obj) { if (libraryField != NULL) { jstring stringObject = (jstring) (*env)->GetObjectField(env, obj, libraryField); if (stringObject != NULL) { - const char * str = JNI_GetStringChars(env, stringObject); - eclipseLibrary = strdup(str); + const _TCHAR * str = JNI_GetStringChars(env, stringObject); + eclipseLibrary = _tcsdup(str); JNI_ReleaseStringChars(env, stringObject, str); } } |