[NFSD] readdir_copy_shortname(): Add needed brackets to '*name_size_out' (#2856)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Sat, 6 Jun 2020 16:21:05 +0000 (18:21 +0200)
committerGitHub <noreply@github.com>
Sat, 6 Jun 2020 16:21:05 +0000 (18:21 +0200)
CORE-17078

base/services/nfsd/readdir.c

index eaa9301..24833c3 100644 (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);
     }
 }