lib/device/library/windows.rb in narou-1.3.1 vs lib/device/library/windows.rb in narou-1.3.2

- old
+ new

@@ -14,10 +14,10 @@ result_len = WinAPI.GetLogicalDriveStrings(1000, drive_strings) drives = drive_strings[0, result_len].split("\0") drives.each do |drive_letter| drive_info = @@FileSystemObject.GetDrive(drive_letter) vol = drive_info.VolumeName rescue "" - if vol == volume_name + if vol.downcase == volume_name.downcase return File.expand_path(drive_letter) end end nil end