https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5028c3adec7aa44eeed7f…
commit 5028c3adec7aa44eeed7f811a41f3a9b7085e8b0
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sat Apr 3 01:43:48 2021 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sat Apr 3 01:43:48 2021 +0200
[UMPNPMGR] Fix remaining length calculation
---
base/services/umpnpmgr/rpcserver.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/base/services/umpnpmgr/rpcserver.c b/base/services/umpnpmgr/rpcserver.c
index cf49713061a..cba896860d5 100644
--- a/base/services/umpnpmgr/rpcserver.c
+++ b/base/services/umpnpmgr/rpcserver.c
@@ -1153,7 +1153,7 @@ GetEnumeratorInstanceList(
break;
dwUsedLength += dwPathLength - 1;
- dwRemainingLength += dwPathLength - 1;
+ dwRemainingLength -= dwPathLength - 1;
pPtr += dwPathLength - 1;
}
@@ -1203,7 +1203,7 @@ GetAllInstanceList(
break;
dwUsedLength += dwPathLength - 1;
- dwRemainingLength += dwPathLength - 1;
+ dwRemainingLength -= dwPathLength - 1;
pPtr += dwPathLength - 1;
}