shell32: SHCreateDirectoryEx can create a non-nested directory.

This commit is contained in:
Phil Lodwick 2006-06-07 14:08:38 -05:00 committed by Alexandre Julliard
parent ea5d55bf4c
commit 5a13cba8b6
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{