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

@ -216,7 +216,7 @@ static int format_abs_path(
abs_path_copy(path_out, path);
if (FAILED(StringCchPrintfA(path_out->path + path_out->len,
NFS41_MAX_PATH_LEN - path_out->len, "\\%s", name->name))) {
status = ERROR_BUFFER_OVERFLOW;
status = ERROR_FILENAME_EXCED_RANGE;
goto out;
}
path_out->len += name->len + 1;