1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/fiddle] test: add missing receiver

https://github.com/ruby/fiddle/commit/1da3b4af16
This commit is contained in:
Sutou Kouhei 2021-04-20 11:07:27 +09:00 committed by Nobuyoshi Nakada
parent d1eeb9fec9
commit 303ab5da8b
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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)