[NFSD] readdir_copy_shortname(): Add needed brackets to '*name_size_out' (#2856)

CORE-17078
This commit is contained in:
Serge Gautherie 2020-06-06 18:21:05 +02:00 committed by GitHub
parent e7440eff8f
commit 1e861d9759
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,7 +165,11 @@ static void readdir_copy_shortname(
/* GetShortPathName returns number of characters, not including \0 */
*name_size_out = (CCHAR)GetShortPathNameW(name, name_out, 12);
if (*name_size_out) {
#ifndef __REACTOS__
*name_size_out++;
#else
(*name_size_out)++;
#endif
*name_size_out *= sizeof(WCHAR);
}
}