[DISK]: Small fixes:
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 8 May 2017 21:34:07 +0000 (21:34 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 8 May 2017 21:34:07 +0000 (21:34 +0000)
commit0c9cd421eea429371613371ce24832165f8f9678
tree7728695627df13b5aa2c0a28ea742ba7a81aeba9
parent4bb216211198529c0d5481b5b54ebb2f25f610f1
[DISK]: Small fixes:
- Check for malformed disk identifier, which must be at least 9 WCHARs long (as done by disk_new);
- Prevent possible memory leaks (missing ExFreePool's) + closing registry key.
Investigated by Lesan Ilie during tests; as part of CORE-13131.
- Make one of our hacks more readable (by me).
(We also note that this driver uses the ExAllocate/FreePool functions in the old-school way).

svn path=/trunk/; revision=74509
reactos/drivers/storage/class/disk/disk.c