changing error code when path is too long

This commit is contained in:
Olga Kornievskaia 2012-04-26 11:06:31 -04:00
parent 7f338d871b
commit 57baa75f04
4 changed files with 4 additions and 3 deletions

View file

@ -4036,6 +4036,7 @@ NTSTATUS map_querydir_errors(
case ERROR_INVALID_PARAMETER: return STATUS_INVALID_PARAMETER;
case ERROR_NO_MORE_FILES: return STATUS_NO_MORE_FILES;
case ERROR_OUTOFMEMORY: return STATUS_INSUFFICIENT_RESOURCES;
case ERROR_FILENAME_EXCED_RANGE: return STATUS_NAME_TOO_LONG;
default:
print_error("failed to map windows error %d to NTSTATUS; "
"defaulting to STATUS_INVALID_NETWORK_RESPONSE\n", status);