winemaker: Fix going up one directory level.

This commit is contained in:
André Hentschel 2010-11-30 23:55:59 +01:00 committed by Alexandre Julliard
parent 4dd043a583
commit c8f4154874
1 changed files with 5 additions and 1 deletions

View File

@ -1810,7 +1810,11 @@ sub search_from($$)
$real_path.="./";
} elsif ($component eq "..") {
# Go up one level
$dirname=dirname($dirname) . "/";
if ($dirname =~ /\.\.\/$/) {
$dirname.="../";
} else {
$dirname=dirname($dirname) . "/";
}
$real_path.="../";
} else {
# The file/directory may have been renamed before. Also try to