Skip to content
Snippets Groups Projects
Commit 322d0873 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard
Browse files

Better handling of configuration with several Windows installations.

parent 0889bfa5
No related merge requests found
...@@ -146,6 +146,7 @@ sub FindWindowsDir { ...@@ -146,6 +146,7 @@ sub FindWindowsDir {
my(@FATD)=@::FatDrives; my(@FATD)=@::FatDrives;
my(@wininis) = (); my(@wininis) = ();
my ($winini); my ($winini);
my ($ThisDrive);
if (!$::opt_windir && !$::opt_fast && !$::opt_thorough) { if (!$::opt_windir && !$::opt_fast && !$::opt_thorough) {
$::opt_thorough++; $::opt_thorough++;
...@@ -161,8 +162,7 @@ sub FindWindowsDir { ...@@ -161,8 +162,7 @@ sub FindWindowsDir {
} }
elsif ($::opt_thorough) { elsif ($::opt_thorough) {
if ($::opt_debug) { print STDERR "DEBUG: Num FATD = ", $#FATD+1, "\n"; } if ($::opt_debug) { print STDERR "DEBUG: Num FATD = ", $#FATD+1, "\n"; }
foreach(@FATD) { foreach $ThisDrive (@FATD) {
my $ThisDrive = shift(@FATD);
my $MntPoint = $ThisDrive->[1]; my $MntPoint = $ThisDrive->[1];
push(@wininis, `find $MntPoint -iname win.ini -print`); push(@wininis, `find $MntPoint -iname win.ini -print`);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment