Kaydet (Commit) 94162158 authored tarafından Giuseppe Castagno's avatar Giuseppe Castagno Kaydeden (comit) Andras Timar

tdf#60381: Accessing Sharepoint share using UNC path does not work.

Added two Windows API missing errors.

The errors added:
ERROR_FILE_CHECKED_OUT
returned when trying to access a file that is locked
by another user.

ERROR_INVALID_NAME
returned when trying to access a local file with the wrong
chars in the path or file name.

Mapped to existent osl_File_E_.... for compatibility.

Change-Id: I0bea1ff2727729c569b0a2cb6befd0d38289b8a2
Reviewed-on: https://gerrit.libreoffice.org/17412Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSamuel Mehrbrodt <s.mehrbrodt@gmail.com>
(cherry picked from commit b7ae1465)
Reviewed-on: https://gerrit.libreoffice.org/17650Reviewed-by: 's avatarGiuseppe Castagno <giuseppe.castagno@acca-esse.eu>
Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst 3b9c50b9
......@@ -68,6 +68,7 @@ static const struct osl_file_error_entry errtable[] = {
{ ERROR_BROKEN_PIPE, osl_File_E_PIPE }, /* 109 */
{ ERROR_DISK_FULL, osl_File_E_NOSPC }, /* 112 */
{ ERROR_INVALID_TARGET_HANDLE, osl_File_E_BADF }, /* 114 */
{ ERROR_INVALID_NAME, osl_File_E_NOENT }, /* 123 */
{ ERROR_INVALID_HANDLE, osl_File_E_INVAL }, /* 124 */
{ ERROR_WAIT_NO_CHILDREN, osl_File_E_CHILD }, /* 128 */
{ ERROR_CHILD_NOT_COMPLETE, osl_File_E_CHILD }, /* 129 */
......@@ -82,6 +83,7 @@ static const struct osl_file_error_entry errtable[] = {
{ ERROR_ALREADY_EXISTS, osl_File_E_EXIST }, /* 183 */
{ ERROR_FILENAME_EXCED_RANGE, osl_File_E_NOENT }, /* 206 */
{ ERROR_NESTING_NOT_ALLOWED, osl_File_E_AGAIN }, /* 215 */
{ ERROR_FILE_CHECKED_OUT, osl_File_E_ACCES }, /* 220 */
{ ERROR_DIRECTORY, osl_File_E_NOENT }, /* 267 */
{ ERROR_NOT_ENOUGH_QUOTA, osl_File_E_NOMEM }, /* 1816 */
{ ERROR_UNEXP_NET_ERR, osl_File_E_NETWORK } /* 59 */
......
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