[SHELL32] Fix SHCreateDirectoryExW showing an error on success

CORE-15145
This commit is contained in:
Mark Jansen 2019-07-09 22:52:17 +02:00
parent 96beae8f52
commit b5423ba70b
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View 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);