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:
parent
2b1b7a0a80
commit
5142e56aee
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue