libwine: Clear the %fs register we got from Android to force allocating a new one.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2017-04-21 19:25:39 +02:00
parent 2b1b7a0a80
commit 5142e56aee
1 changed files with 9 additions and 0 deletions

View File

@ -887,7 +887,16 @@ static jstring wine_init_jni( JNIEnv *env, jobject obj, jobjectArray cmdline, jo
java_object = (*env)->NewGlobalRef( env, obj ); java_object = (*env)->NewGlobalRef( env, obj );
#ifdef __i386__
{
unsigned short java_fs = wine_get_fs();
wine_set_fs( 0 );
wine_init( argc, argv, error, sizeof(error) );
wine_set_fs( java_fs );
}
#else
wine_init( argc, argv, error, sizeof(error) ); wine_init( argc, argv, error, sizeof(error) );
#endif
return (*env)->NewStringUTF( env, error ); return (*env)->NewStringUTF( env, error );
} }