https://bugs.winehq.org/show_bug.cgi?id=53683
Tuupertunut superemppu+winehq@live.fi changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |superemppu+winehq@live.fi
--- Comment #12 from Tuupertunut superemppu+winehq@live.fi --- My Arma 3 also fails to find random files and directories, and I think I found the reason.
https://github.com/wine-staging/wine-staging/blob/08ad4107613a980f533f4784a2...
Here this patch is using chdir(), which also affects other threads in the same process. Whenever this code runs, for a little while, all other threads see the wrong working directory and therefore fail to read any files with relative paths during this period. Later the original working directory is restored with fchdir() and the files can be found again.
You should not use chdir() when traversing path elements but for example use file descriptors instead.