Module: tools Branch: master Commit: 62c21c2426058a48267e9476f7a37fd41a115df9 URL: https://source.winehq.org/git/tools.git/?a=commit;h=62c21c2426058a48267e9476...
Author: Francois Gouget fgouget@codeweavers.com Date: Fri Jun 15 11:57:19 2018 +0200
testbot/WineRunTask: Rename a TakeScreenshot() parameter.
It had the same name as a global variable which made the code a bit confusing.
Signed-off-by: Francois Gouget fgouget@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
testbot/bin/WineRunTask.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testbot/bin/WineRunTask.pl b/testbot/bin/WineRunTask.pl index b428069..3b0ccbc 100755 --- a/testbot/bin/WineRunTask.pl +++ b/testbot/bin/WineRunTask.pl @@ -71,14 +71,14 @@ sub Error(@)
sub TakeScreenshot($$) { - my ($VM, $FullScreenshotFileName) = @_; + my ($VM, $FileName) = @_;
my $Domain = $VM->GetDomain(); my ($ErrMessage, $ImageSize, $ImageBytes) = $Domain->CaptureScreenImage(); if (!defined $ErrMessage) { my $OldUMask = umask(002); - if (open(my $Screenshot, ">", $FullScreenshotFileName)) + if (open(my $Screenshot, ">", $FileName)) { print $Screenshot $ImageBytes; close($Screenshot);