diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/win32/lib/Win32API.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Dec 17 01:06:47 2014 NAKAMURA Usaku <usa@ruby-lang.org> + + * ext/win32/lib/Win32API.rb (Win32API#call): need to splat. hmm, when + was this broken? + Tue Dec 16 15:18:23 2014 Nobuyoshi Nakada <nobu@ruby-lang.org> * iseq.c (rb_method_for_self_aref, rb_method_for_self_aset): call diff --git a/ext/win32/lib/Win32API.rb b/ext/win32/lib/Win32API.rb index 8589768e64..7cabd9f84a 100644 --- a/ext/win32/lib/Win32API.rb +++ b/ext/win32/lib/Win32API.rb @@ -29,7 +29,7 @@ class Win32API args[i], = [x == 0 ? nil : x].pack("p").unpack(POINTER_TYPE) if import[i] == "S" args[i], = [x].pack("I").unpack("i") if import[i] == "I" end - ret, = @func.call(args) + ret, = @func.call(*args) return ret || 0 end |