https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1e861d9759b39ac889b19…
commit 1e861d9759b39ac889b19e97f56af7ac3d2dbc2f
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Sat Jun 6 18:21:05 2020 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Jun 6 18:21:05 2020 +0200
[NFSD] readdir_copy_shortname(): Add needed brackets to '*name_size_out'
(#2856)
CORE-17078
---
base/services/nfsd/readdir.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/base/services/nfsd/readdir.c b/base/services/nfsd/readdir.c
index eaa9301e732..24833c3af16 100644
--- a/base/services/nfsd/readdir.c
+++ b/base/services/nfsd/readdir.c
@@ -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);
}
}