summaryrefslogtreecommitdiff
path: root/ext/dl/lib/dl/win32.rb
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-15 20:56:22 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-15 20:56:22 +0000
commitaffa5bcff983094bb71ab2b9abe6e85a7c4b20af (patch)
tree1cbff423bbd11963bc0eea9d7633c0db5389f5e5 /ext/dl/lib/dl/win32.rb
parent59e55b2b8e43ed773f5b5ad58b4d53a8b673b93f (diff)
parent0c79675f354eb43df9e5079831b42e88885db56d (diff)
sorry. I made wrong tags.v1_8_5_58
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_5_58@13006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/lib/dl/win32.rb')
-rw-r--r--ext/dl/lib/dl/win32.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/lib/dl/win32.rb b/ext/dl/lib/dl/win32.rb
index 0fed47c324..92f473d392 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").sub(/^(.)0*$/, '\1')
+ prototype = (export + import.to_s).tr("VPpNnLlIi", "0SSI")
handle = DLL[dllname] ||= DL::Handle.new(dllname)
@sym = handle.sym(func, prototype)
end