Commit 5142e56a authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 2b1b7a0a
......@@ -887,7 +887,16 @@ static jstring wine_init_jni( JNIEnv *env, jobject obj, jobjectArray cmdline, jo
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) );
#endif
return (*env)->NewStringUTF( env, error );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment