7031854: JCK 7 test FileDialogTest0001 fails on Windows with Russian locale
authordav
Thu, 07 Apr 2011 22:34:29 +0400
changeset 9201 c2c745bb19a6
parent 9200 d3e9a8fecd4f
child 9202 164591974d77
7031854: JCK 7 test FileDialogTest0001 fails on Windows with Russian locale Reviewed-by: uta, dcherepanov
jdk/src/windows/native/sun/windows/awt_FileDialog.cpp
--- a/jdk/src/windows/native/sun/windows/awt_FileDialog.cpp	Thu Apr 07 18:54:34 2011 +0400
+++ b/jdk/src/windows/native/sun/windows/awt_FileDialog.cpp	Thu Apr 07 22:34:29 2011 +0400
@@ -225,7 +225,6 @@
 {
     JNIEnv *env = (JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2);
     jobject peer;
-    WCHAR unicodeChar = L' ';
     LPTSTR fileBuffer = NULL;
     LPTSTR currentDirectory = NULL;
     jint mode = 0;
@@ -263,7 +262,7 @@
         HWND hwndOwner = awtParent ? awtParent->GetHWnd() : NULL;
 
         if (title == NULL || env->GetStringLength(title)==0) {
-            title = JNU_NewStringPlatform(env, &unicodeChar);
+            title = JNU_NewStringPlatform(env, L" ");
         }
 
         JavaStringBuffer titleBuffer(env, title);