mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 03:43:36 +00:00
Suppose the list of devices contains, for example listed in this order: `multi(0)disk(0)rdisk(0)partition(1)`, followed by: `multi(0)disk(0)rdisk(0)`, then if someone attempts to open `multi(0)disk(0)rdisk(0)`, the code would erroneously open `multi(0)disk(0)rdisk(0)partition(1)` instead. Device name lookup now verifies that the device name being tested has the same length as the one being opened. Noticed by user "Xen", see: https://reactos.org/forum/viewtopic.php?p=144840#p144840 > Wrong name comparison in ArcOpen (can open "device()partition()" > instead of "device()" that was really requested)