[cosmetic] formating changes (tabs) to symlink.c
This commit is contained in:
parent
9765eb7d52
commit
62c00bff40
1 changed files with 6 additions and 7 deletions
|
|
@ -71,14 +71,13 @@ static int abs_path_link(
|
||||||
}
|
}
|
||||||
|
|
||||||
/* copy the component and add a \ */
|
/* copy the component and add a \ */
|
||||||
if (FAILED(StringCchCopyNA(path_pos,
|
if (FAILED(StringCchCopyNA(path_pos, path_max-path_pos, name.name,
|
||||||
path_max-path_pos, name.name, name.len))) {
|
name.len))) {
|
||||||
status = ERROR_BUFFER_OVERFLOW;
|
status = ERROR_BUFFER_OVERFLOW;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
path_pos += name.len;
|
path_pos += name.len;
|
||||||
if (FAILED(StringCchCopyNA(path_pos,
|
if (FAILED(StringCchCopyNA(path_pos, path_max-path_pos, "\\", 1))) {
|
||||||
path_max-path_pos, "\\", 1))) {
|
|
||||||
status = ERROR_BUFFER_OVERFLOW;
|
status = ERROR_BUFFER_OVERFLOW;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
@ -132,7 +131,7 @@ int nfs41_symlink_target(
|
||||||
if (target != path) {
|
if (target != path) {
|
||||||
target->len = path->len;
|
target->len = path->len;
|
||||||
if (FAILED(StringCchCopyNA(target->path, NFS41_MAX_PATH_LEN,
|
if (FAILED(StringCchCopyNA(target->path, NFS41_MAX_PATH_LEN,
|
||||||
path->path, path->len))) {
|
path->path, path->len))) {
|
||||||
status = ERROR_BUFFER_OVERFLOW;
|
status = ERROR_BUFFER_OVERFLOW;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
@ -285,8 +284,8 @@ static int marshall_symlink(unsigned char *buffer, uint32_t *length, nfs41_upcal
|
||||||
if (status) goto out;
|
if (status) goto out;
|
||||||
|
|
||||||
if (*length <= len || !MultiByteToWideChar(CP_UTF8, 0,
|
if (*length <= len || !MultiByteToWideChar(CP_UTF8, 0,
|
||||||
args->target_get.path, args->target_get.len,
|
args->target_get.path, args->target_get.len,
|
||||||
(LPWSTR)buffer, len / sizeof(WCHAR))) {
|
(LPWSTR)buffer, len / sizeof(WCHAR))) {
|
||||||
status = ERROR_BUFFER_OVERFLOW;
|
status = ERROR_BUFFER_OVERFLOW;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue