Skip to content

Commit

Permalink
Merge pull request #103 from blitzter/patch-1
Browse files Browse the repository at this point in the history
Fixed issue with unmapped drive in Windows
  • Loading branch information
davidferguson authored Jun 24, 2017
2 parents 5d249ac + b8a5ba7 commit d40fdc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pibakery.js
Original file line number Diff line number Diff line change
Expand Up @@ -1797,7 +1797,7 @@ function getDriveListWin (callback) {
for ( var x = 0; x < disks.length; x++) {
for ( var y = 0; y < drives.length; y++) {
// if (drives[y].Caption == disks[x].mountpoint) {
if (drives[y].Caption == disks[x].mountpoints[0].path) {
if (typeof disks[x].mountpoints[0] != "undefined" && drives[y].Caption == disks[x].mountpoints[0].path) {
if ((! disks[x].system) && drives[y].DriveType == 2) {
// names.push(disks[x].mountpoint + ' - ' + drives[y].VolumeName)
names.push(disks[x].mountpoints[0].path + ' - ' + drives[y].VolumeName)
Expand Down

0 comments on commit d40fdc5

Please sign in to comment.