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.