diff options
-rw-r--r-- | sal/osl/unx/file_misc.cxx | 2 | ||||
-rw-r--r-- | sal/osl/w32/file_dirvol.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/file_misc.cxx b/sal/osl/unx/file_misc.cxx index 034ed56df5cb..7e3386cfa4e5 100644 --- a/sal/osl/unx/file_misc.cxx +++ b/sal/osl/unx/file_misc.cxx @@ -537,7 +537,7 @@ static oslFileError create_dir_recursively_( oslFileError osl_error = create_dir_recursively_( dir_path, aDirectoryCreationCallbackFunc, pData); - if (osl_error != osl_File_E_None) + if (osl_error != osl_File_E_None && osl_error != osl_File_E_EXIST) return osl_error; dir_path[pos] = '/'; diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx index 929916965777..c9a6c4dd16b6 100644 --- a/sal/osl/w32/file_dirvol.cxx +++ b/sal/osl/w32/file_dirvol.cxx @@ -639,7 +639,7 @@ static DWORD create_dir_recursively_( dir_path->buffer[pos] = BACKSLASH; // restore - if (ERROR_SUCCESS != w32_error) + if (ERROR_SUCCESS != w32_error && ERROR_ALREADY_EXISTS != w32_error) return w32_error; return create_dir_recursively_(dir_path, aDirectoryCreationCallbackFunc, pData); |