]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
Fix Length calculation in PdoQueryId
authorOwen Smith <owen.smith@cloud.com>
Wed, 13 Sep 2023 13:45:14 +0000 (14:45 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Thu, 28 Sep 2023 12:45:47 +0000 (13:45 +0100)
commitbdc836eb876442f5f006f7af15d1db029e698ca9
tree87778f18285b529d91176320e714a2fdfc1716c9
parent6ec70e7abddced4cdd8fb10aaef6406b9ee4ed53
Fix Length calculation in PdoQueryId

Decrease Length by the string length of the current ID before moving
the Buffer value to the end of the current ID. Without this, Length
is not decreased, leading to potential issues with the next call to
RtlStringCbPrintfW.
Note: the second chunk it to maintain consistent ordering of operations
for clarity, and has no functional change.

Signed-off-by: Owen Smith <owen.smith@cloud.com>
src/xenbus/pdo.c