June 2, 2026
7:13 p.m.
On Tue Jun 2 18:59:59 2026 +0000, Dmitry Timoshkov wrote:
My first version was not using STGM_FAILIFTHERE, but after adding the tests and experimenting with possible solutions I couldn't find a better way to make the tests pass. How would you suggest to avoid it? I was thinking something like:
DWORD createMode = STGM_WRITE | STGM_SHARE_EXCLUSIVE;
if (mode == STGMOVE_MOVE)
createMode |= STGM_FAILIFTHERE;
...
hr = IStorage_CreateStream(dest, new_name, createMode, 0, 0, &dst);
But if there's something I'm missing that makes it more complicated than that, we can use the extra call. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11054#note_142030