mirror of
https://github.com/reactos/reactos.git
synced 2026-06-20 17:26:01 +08:00
[NFSD] readdir_copy_shortname(): Add needed brackets to '*name_size_out' (#2856)
CORE-17078
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user