Francois Gouget : testbot/WineRunTask: Rename a TakeScreenshot() parameter.

Alexandre Julliard julliard at winehq.org
Fri Jun 15 12:37:11 CDT 2018


Module: tools
Branch: master
Commit: 62c21c2426058a48267e9476f7a37fd41a115df9
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=62c21c2426058a48267e9476f7a37fd41a115df9

Author: Francois Gouget <fgouget at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);




More information about the wine-cvs mailing list