mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NFSD] readdir_copy_shortname(): Add needed brackets to '*name_size_out' (#2856)
CORE-17078
This commit is contained in:
parent
e7440eff8f
commit
1e861d9759
1 changed files with 4 additions and 0 deletions
|
@ -165,7 +165,11 @@ static void readdir_copy_shortname(
|
||||||
/* GetShortPathName returns number of characters, not including \0 */
|
/* GetShortPathName returns number of characters, not including \0 */
|
||||||
*name_size_out = (CCHAR)GetShortPathNameW(name, name_out, 12);
|
*name_size_out = (CCHAR)GetShortPathNameW(name, name_out, 12);
|
||||||
if (*name_size_out) {
|
if (*name_size_out) {
|
||||||
|
#ifndef __REACTOS__
|
||||||
*name_size_out++;
|
*name_size_out++;
|
||||||
|
#else
|
||||||
|
(*name_size_out)++;
|
||||||
|
#endif
|
||||||
*name_size_out *= sizeof(WCHAR);
|
*name_size_out *= sizeof(WCHAR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue