changing error code when path is too long
This commit is contained in:
parent
7f338d871b
commit
57baa75f04
4 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue