winapi: Use $cwd variable instead of pwd command.

Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Serge Gautherie 2020-07-25 21:35:09 +02:00 committed by Alexandre Julliard
parent 196cb7afef
commit 49936b31b3
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ BEGIN {
if($wine_dir =~ /^\./) {
$current_dir = ".";
my $pwd; chomp($pwd = `pwd`);
my $pwd; chomp($pwd = $cwd);
foreach my $n (1..((length($wine_dir) + 1) / 3)) {
$pwd =~ s/\/([^\/]*)$//;
$current_dir = "$1/$current_dir";