From e78da7081c1a32a6a03f13cd418145e4256951c1 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Tue, 21 Aug 2007 23:51:30 +0000 Subject: * ext/dl/lib/dl/win32.rb: seems that dl doesn't accept void argument. fixed [ruby-bugs:PR#5489]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/lib/dl/win32.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/dl') diff --git a/ext/dl/lib/dl/win32.rb b/ext/dl/lib/dl/win32.rb index 92f473d392..0fed47c324 100644 --- a/ext/dl/lib/dl/win32.rb +++ b/ext/dl/lib/dl/win32.rb @@ -6,7 +6,7 @@ class Win32API DLL = {} def initialize(dllname, func, import, export = "0") - prototype = (export + import.to_s).tr("VPpNnLlIi", "0SSI") + prototype = (export + import.to_s).tr("VPpNnLlIi", "0SSI").sub(/^(.)0*$/, '\1') handle = DLL[dllname] ||= DL::Handle.new(dllname) @sym = handle.sym(func, prototype) end -- cgit v1.2.3