https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b5423ba70b0a1e7022a04…
commit b5423ba70b0a1e7022a04a7c7b3b7b0de447f6b8
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Tue Jul 9 22:52:17 2019 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Tue Jul 9 22:52:17 2019 +0200
[SHELL32] Fix SHCreateDirectoryExW showing an error on success
CORE-15145
---
dll/win32/shell32/shlfileop.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/shell32/shlfileop.cpp b/dll/win32/shell32/shlfileop.cpp
index 211b3311c7b..499f4d3079e 100644
--- a/dll/win32/shell32/shlfileop.cpp
+++ b/dll/win32/shell32/shlfileop.cpp
@@ -880,7 +880,7 @@ int WINAPI SHCreateDirectoryExW(HWND hWnd, LPCWSTR path,
LPSECURITY_ATTRIBUTES s
}
}
- if (ret && hWnd && (ERROR_CANCELLED != ret))
+ if (ret && hWnd && (ERROR_CANCELLED != ret &&
ERROR_ALREADY_EXISTS != ret))
{
ShellMessageBoxW(shell32_hInstance, hWnd,
MAKEINTRESOURCEW(IDS_CREATEFOLDER_DENIED), MAKEINTRESOURCEW(IDS_CREATEFOLDER_CAPTION),
MB_ICONEXCLAMATION | MB_OK, path);