On Wed Jul 3 17:28:22 2024 +0000, Paul Gofman wrote:
Nvm the last suggestion probably, there should be the difference for Wine device file which doesn't map to Unix fd.
It fails for devfs block devices, which is what that code operates on. Note that "A:\" is the only valid type of path to pass to GetVolumeInformation(); our kernelbase internally strips the final slash and opens "\??\A:", and opening a drive root without a slash in ntdll causes us to open $WINEPREFIX\dosdevices\a:: (with the double colon) which points to the drive block device.