diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c index 426c02272fe..055b91d6b37 100644 --- a/dlls/shell32/shlfileop.c +++ b/dlls/shell32/shlfileop.c @@ -559,7 +559,8 @@ int WINAPI SHCreateDirectoryExW(HWND hWnd, LPCWSTR path, LPSECURITY_ATTRIBUTES s { ret = SHNotifyCreateDirectoryW(path, sec); /* Refuse to work on certain error codes before trying to create directories recursively */ - if (ret != ERROR_FILE_EXISTS && + if (ret != ERROR_SUCCESS && + ret != ERROR_FILE_EXISTS && ret != ERROR_ALREADY_EXISTS && ret != ERROR_FILENAME_EXCED_RANGE) {