We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 218608c + 5a06a20 commit 5e98080Copy full SHA for 5e98080
t/helper/test-drop-caches.c
@@ -16,8 +16,8 @@ static int cmd_sync(void)
16
if ((0 == dwRet) || (dwRet > MAX_PATH))
17
return error("Error getting current directory");
18
19
- if ((Buffer[0] < 'A') || (Buffer[0] > 'Z'))
20
- return error("Invalid drive letter '%c'", Buffer[0]);
+ if (!has_dos_drive_prefix(Buffer))
+ return error("'%s': invalid drive letter", Buffer);
21
22
szVolumeAccessPath[4] = Buffer[0];
23
hVolWrite = CreateFile(szVolumeAccessPath, GENERIC_READ | GENERIC_WRITE,
0 commit comments