Commit 5a13cba8 authored by Phil Lodwick's avatar Phil Lodwick Committed by Alexandre Julliard

shell32: SHCreateDirectoryEx can create a non-nested directory.

parent ea5d55bf
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment