https://bugs.winehq.org/show_bug.cgi?id=52995
--- Comment #3 from Gijs Vermeulen gijsvrm@gmail.com --- This commit should hopefully help: https://source.winehq.org/git/wine.git/commit/8ee96cff6c13c92b0a9cba0a805ddf47084ef766
I tried going the GetTempFileName route, but encountered a few problems as outlined in https://gitlab.winehq.org/wine/wine/-/merge_requests/67