Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DevicePathToDriveLetterPath when more than one mapping
In https://crrev.com/c/5604926 we changed DevicePathToDriveLetterPath to use a wstring_view over the mappings, which are a series of nul-teminated strings followed by an empty string at the end. The loop exits when it finds an empty string. However at the bottom of the loop, instead of moving to the start of the next nul-terminated string, we searched for the nul and moved to it, so the second mapping would never be reached. For whatever reason the windows rust bots happen to hit this case and were failing tests as a result, so they are added to the set of bots in the CQ for this CL. Change-Id: I87874f3b332fcb291360c1b2bcbf57b287f13a2e Cq-Include-Trybots: luci.chromium.try:win-rust-x64-dbg,win-rust-x64-rel Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5605635 Reviewed-by: Łukasz Anforowicz <[email protected]> Commit-Queue: danakj <[email protected]> Cr-Commit-Position: refs/heads/main@{#1312171}
- Loading branch information