Francois Gouget : winapi_check: Fix handling of the 'longlong' arguments.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 20 14:19:02 CST 2007


Module: wine
Branch: master
Commit: 88619a80d8f83fa6f4a4d431a36a74b7ebbf9b7e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=88619a80d8f83fa6f4a4d431a36a74b7ebbf9b7e

Author: Francois Gouget <fgouget at free.fr>
Date:   Tue Feb 20 15:48:32 2007 +0100

winapi_check: Fix handling of the 'longlong' arguments.

---

 tools/winapi/winapi_local.pm |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/winapi/winapi_local.pm b/tools/winapi/winapi_local.pm
index f46d1ec..9cea587 100644
--- a/tools/winapi/winapi_local.pm
+++ b/tools/winapi/winapi_local.pm
@@ -187,7 +187,7 @@ sub _check_function($$$$$$) {
 		("double", "double");
 	    } elsif(defined($kind) && $kind eq "longlong") {
 		$n+=1;
-		"double";
+		"longlong";
 	    } else {
 		$n++;
 		$kind;
@@ -230,7 +230,8 @@ sub _check_function($$$$$$) {
 		    $output->write("argument " . ($n + 1) . " type is forbidden: " .
 				   "$argument_types[$n] ($argument_kinds[$n])\n");
 		}
-	    } elsif($argument_kinds[$n] ne $declared_argument_kinds[$n]) {
+	    } elsif($argument_kinds[$n] ne $declared_argument_kinds[$n] &&
+                   !($argument_kinds[$n] eq "longlong" && $declared_argument_kinds[$n] eq "double")) {
 		if($options->report_argument_kind($argument_kinds[$n]) ||
 		   $options->report_argument_kind($declared_argument_kinds[$n]))
 		{




More information about the wine-cvs mailing list