Fixes The Rising of The Shield Hero: Relieve the Animation hangs on start (and maybe something else with ENIGMA protector). The protector implements virtual file system which hotpatches a lot of file related functions, in particular, NtOpenFile() and NtClose(). When NtOpenFile() is called from RtlSetCurrentDirectory_U() with peb lock held the hotpatcher takes its own lock and that can deadlock with other threads performing file / path operations ending up in get_full_path_helper() which also takes PEB lock. Once the hotpatcher is initialized the game only sets "." or the same full path as current and may do that rather often. Back then I was trying to fix it in a different way avoiding setting the same directory path over and reopening the current directory file but that was wrong in various ways. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10780#note_138231