* mount.cc (get_disk_type): Drop unneeded toupper call. Convert case

constants to wide chars.
This commit is contained in:
Corinna Vinschen 2012-02-17 14:17:12 +00:00
parent 732f3bc821
commit e86c278998
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2012-02-17 Corinna Vinschen <corinna@vinschen.de>
* mount.cc (get_disk_type): Drop unneeded toupper call. Convert case
constants to wide chars.
2012-02-16 Corinna Vinschen <corinna@vinschen.de>
* autoload.cc (NetUseGetInfo): Define.

View File

@ -1851,25 +1851,25 @@ get_disk_type (LPCWSTR dos)
if (is_dev (dev, L"\\Device\\"))
{
d += 8;
switch (toupper (*d))
switch (*d)
{
case 'C':
case L'C':
if (is_dev (d, L"CdRom"))
return DT_CDROM;
break;
case 'F':
case L'F':
if (is_dev (d, L"Floppy"))
return DT_FLOPPY;
break;
case 'H':
case L'H':
if (is_dev (d, L"Harddisk"))
return DT_HARDDISK;
break;
case 'L':
case L'L':
if (is_dev (d, L"LanmanRedirector\\"))
return DT_SHARE_SMB;
break;
case 'M':
case L'M':
if (is_dev (d, L"MRxNfs\\"))
return DT_SHARE_NFS;
break;