From 5a13cba8b690a03e07a4f74729d9c5b8601df36d Mon Sep 17 00:00:00 2001 From: Phil Lodwick Date: Wed, 7 Jun 2006 14:08:38 -0500 Subject: [PATCH] shell32: SHCreateDirectoryEx can create a non-nested directory. --- dlls/shell32/shlfileop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {