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

@ -47,7 +47,7 @@ static int create_open_state(
InitializeSRWLock(&state->path.lock);
if (FAILED(StringCchCopyA(state->path.path, NFS41_MAX_PATH_LEN, path))) {
status = ERROR_BUFFER_OVERFLOW;
status = ERROR_FILENAME_EXCED_RANGE;
goto out_free;
}
state->path.len = (unsigned short)strlen(state->path.path);