6835803: Type error in src/windows/native/sun/windows/awt_Window.cpp
authorohair
Thu, 07 May 2009 18:19:41 -0700
changeset 2795 8ceb16c7fbf3
parent 2791 c84bf0caab7f
child 2796 8f7662a82339
6835803: Type error in src/windows/native/sun/windows/awt_Window.cpp Reviewed-by: prr
jdk/src/windows/native/sun/windows/awt_Window.cpp
--- a/jdk/src/windows/native/sun/windows/awt_Window.cpp	Fri Apr 17 15:56:20 2009 +0100
+++ b/jdk/src/windows/native/sun/windows/awt_Window.cpp	Thu May 07 18:19:41 2009 -0700
@@ -487,7 +487,8 @@
         size_t length = env->GetStringLength(javaWarningString) + 1;
         warningString = new WCHAR[length];
         env->GetStringRegion(javaWarningString, 0,
-                static_cast<jsize>(length - 1), warningString);
+                static_cast<jsize>(length - 1),
+                reinterpret_cast<jchar*>(warningString));
         warningString[length-1] = L'\0';
 
         env->DeleteLocalRef(javaWarningString);