[UMPNPMGR] Fix remaining length calculation

This commit is contained in:
Mark Jansen 2021-04-03 01:43:48 +02:00
parent 4712deb8a8
commit 5028c3adec
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -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;
}