18 Jan
2024
18 Jan
'24
8:12 p.m.
Esme Povirk (@madewokherd) commented about dlls/shell32/shlfileop.c:
+ if (attributes & FILE_ATTRIBUTE_DIRECTORY) + { + ret = SHNotifyCreateDirectoryW(path, NULL); + if (S_OK == ret) + { + if (!SetFileAttributesW(path, attributes)) ret = GetLastError(); + }; + } + else + { + file = CreateFileW(path, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, attributes, NULL); + + if (file != INVALID_HANDLE_VALUE) + CloseHandle(file); + else + ret = GetLastError(); This isn't an HRESULT.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/4817#note_58014