Merge
authorduke
Wed, 05 Jul 2017 16:58:11 +0200
changeset 3393 bcfef51a1e18
parent 3392 e0b23259a484 (diff)
parent 3388 10dba53613c2 (current diff)
child 3395 824c57d4e199
Merge
--- a/jdk/.hgtags	Wed Jul 05 16:58:08 2017 +0200
+++ b/jdk/.hgtags	Wed Jul 05 16:58:11 2017 +0200
@@ -42,3 +42,4 @@
 382a27aa78d3236fa123c60577797a887fe93e09 jdk7-b65
 bd31b30a5b21f20e42965b1633f18a5c7946d398 jdk7-b66
 a952aafd5181af953b0ef3010dbd2fcc28460e8a jdk7-b67
+b23d905cb5d3b382295240d28ab0bfb266b4503c jdk7-b68
--- a/jdk/src/windows/native/sun/jkernel/kernel.cpp	Wed Jul 05 16:58:08 2017 +0200
+++ b/jdk/src/windows/native/sun/jkernel/kernel.cpp	Wed Jul 05 16:58:11 2017 +0200
@@ -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;