Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2009-12-14 19:49:13 +0000
committerAndrew Niefer2009-12-14 19:49:13 +0000
commit847254cb34de8dcff6e28485a64b2ac051d4da99 (patch)
tree956a7a46d544159f642f358b2337850f0de7239a
parent9e59c95ab5ce263e90393fc3288fc871b512fdd9 (diff)
downloadrt.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.c4
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);
}
}

Back to the top