Merge
authorxdono
Wed, 12 Aug 2009 10:32:32 -0700
changeset 3392 e0b23259a484
parent 3391 176b0c40eacc (diff)
parent 3389 f3a7b8b75bdf (current diff)
child 3393 bcfef51a1e18
Merge
--- a/jdk/src/windows/native/sun/jkernel/kernel.cpp	Thu Aug 06 10:25:18 2009 -0700
+++ b/jdk/src/windows/native/sun/jkernel/kernel.cpp	Wed Aug 12 10:32:32 2009 -0700
@@ -116,11 +116,11 @@
     char *result = NULL;
     size_t len;
     const jchar* utf16 = env->GetStringChars(jstr, NULL);
-    len = wcstombs(NULL, utf16, env->GetStringLength(jstr) * 4) + 1;
+    len = wcstombs(NULL, (const wchar_t*)utf16, env->GetStringLength(jstr) * 4) + 1;
     if (len == -1)
         return NULL;
     result = (char*) malloc(len);
-    if (wcstombs(result, utf16, len) == -1)
+    if (wcstombs(result, (const wchar_t*)utf16, len) == -1)
         return NULL;
     env->ReleaseStringChars(jstr, utf16);
     return result;
@@ -640,7 +640,7 @@
 }
 
 
-void getParent(const TCHAR *path, TCHAR *dest) {
+void getParent(TCHAR *path, TCHAR *dest) {
     char* lastSlash = max(strrchr(path, '\\'), strrchr(path, '/'));
     if (lastSlash == NULL) {
         *dest = NULL;