summaryrefslogtreecommitdiff
path: root/ext/dl/win32
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/win32')
-rw-r--r--ext/dl/win32/lib/Win32API.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dl/win32/lib/Win32API.rb b/ext/dl/win32/lib/Win32API.rb
index b642e0c8fe..97f6c5135b 100644
--- a/ext/dl/win32/lib/Win32API.rb
+++ b/ext/dl/win32/lib/Win32API.rb
@@ -12,6 +12,8 @@ class Win32API
@proto = [import].join.tr("VPpNnLlIi", "0SSI").sub(/^(.)0*$/, '\1')
handle = DLL[dllname] ||= DL.dlopen(dllname)
@func = DL::CFunc.new(handle[func], TYPEMAP[export.tr("VPpNnLlIi", "0SSI")], func)
+ rescue DL::DLError => e
+ raise LoadError, e.message, e.backtrace
end
def call(*args)