Commit 5518032eab5a4ce0dec518e950542debad82a8f4
Fix :volume command on Windows.
Was accidentally broken while moving drive existence checking
code to the utils.c file.
Author: xaizek
Author date (UTC): 2012-02-18 17:32
Committer name: xaizek
Committer date (UTC): 2012-02-18 17:46
Parent(s): e379e3b285c90e4f4673b3ad3da324bae4cc95b0
Signing key:
Tree: 591da2e74d0b26634c32ebea63124240fee07c48
File src/utils.c changed (mode: 100644) (index 85a3d5039..ac9bc8f7f) |
... |
... |
int |
1662 |
1662 |
drive_exists(TCHAR letter) |
drive_exists(TCHAR letter) |
1663 |
1663 |
{ |
{ |
1664 |
1664 |
TCHAR drive[] = TEXT("?:\\"); |
TCHAR drive[] = TEXT("?:\\"); |
|
1665 |
|
drive[0] = letter; |
1665 |
1666 |
int type = GetDriveType(drive); |
int type = GetDriveType(drive); |
1666 |
1667 |
|
|
1667 |
1668 |
switch(type) |
switch(type) |