7031854: JCK 7 test FileDialogTest0001 fails on Windows with Russian locale

Reviewed-by: uta, dcherepanov
This commit is contained in:
Andrei Dmitriev 2011-04-07 22:34:29 +04:00
parent 27da779f25
commit fae19754bb

View File

@ -225,7 +225,6 @@ AwtFileDialog::Show(void *p)
{
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 @@ AwtFileDialog::Show(void *p)
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);