]> xenbits.xensource.com Git - pvdrivers/win/xenvkbd.git/commit
Fix Length calculation in PdoQueryId
authorOwen Smith <owen.smith@cloud.com>
Mon, 2 Oct 2023 12:52:03 +0000 (13:52 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Mon, 2 Oct 2023 16:03:48 +0000 (17:03 +0100)
commitc8f2c59b8ca55bf79d299c29f6af36c60b0a5736
tree4bd9daf9761879d55de8aad3a4a0601782bcdbde
parent89318dc8ae03f613e25e1e3738969552dbf352d5
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/xenvkbd/pdo.c