May 18, 2026
10:25 a.m.
I ported an application using wine. But I found that it lauched successfully only the first time. I solved this bug. The application calls ReplaceFileW to move a file to a directory. The file and the directory have the same name. Wine just move the direcory to a file. When the application launced the second time, it can not create the directory because there is a file owns the same name. So it can not launch. I think this is a bug. I made a test on Windows, when replaced is a directory, Windows just do nothing and return FALSE. The last error is ERROR_ACCESS_DENIED. But in Wine, it does the replace operation and return TRUE. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10934