28 Jul
2016
28 Jul
'16
2:29 a.m.
Sebastian Lackner <sebastian(a)fds-team.de> writes:
It looks like RtlRunOnceExecuteOnce is not safe to use (keyed_event not initialized yet). You could use pthread (like used before in init_teb_key), but probably moving to a function is sufficient to improve code readability. By avoiding the heavily indented code it would already look a bit less hacky. ;)
Simplifying the error handling would probably also help. For instance, pthread_setspecific() is not going to fail in any meaningful way. -- Alexandre Julliard julliard(a)winehq.org