[SHELL32] Fix SHCreateDirectoryExW showing an error on success
authorMark Jansen <mark.jansen@reactos.org>
Tue, 9 Jul 2019 20:52:17 +0000 (22:52 +0200)
committerMark Jansen <mark.jansen@reactos.org>
Tue, 9 Jul 2019 20:52:17 +0000 (22:52 +0200)
CORE-15145

dll/win32/shell32/shlfileop.cpp

index 211b331..499f4d3 100644 (file)
@@ -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);