summaryrefslogtreecommitdiff
path: root/test/fiddle/test_function.rb
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2021-04-20 11:07:27 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-13 19:37:45 +0900
commit303ab5da8b34faf6b4b608f1f7512dfd08544cc8 (patch)
treefc02b50dcc2a41f981043d42d4c7dd55e04cf0e8 /test/fiddle/test_function.rb
parentd1eeb9fec953c41ebaf312d7a56948bca43e9f93 (diff)
[ruby/fiddle] test: add missing receiver
https://github.com/ruby/fiddle/commit/1da3b4af16
Diffstat (limited to 'test/fiddle/test_function.rb')
-rw-r--r--test/fiddle/test_function.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fiddle/test_function.rb b/test/fiddle/test_function.rb
index ea5f054dd2..842221c91f 100644
--- a/test/fiddle/test_function.rb
+++ b/test/fiddle/test_function.rb
@@ -97,7 +97,7 @@ module Fiddle
if WINDOWS
def test_win32_last_error
- kernel32 = dlopen('kernel32')
+ kernel32 = Fiddle.dlopen('kernel32')
args = [kernel32['SetLastError'], [TYPE_LONG], TYPE_VOID]
args << Function::STDCALL if Function.const_defined?(:STDCALL)
set_last_error = Function.new(*args)