mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
parent
5516d74ad2
commit
37d16bb9dc
1 changed files with 2 additions and 2 deletions
|
@ -100,8 +100,8 @@ module Fiddle
|
|||
|
||||
if WINDOWS
|
||||
def test_win32_last_error
|
||||
kernel32 = Fiddle.dlopen('kernel32')
|
||||
args = [kernel32['SetLastError'], [TYPE_LONG], TYPE_VOID]
|
||||
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)
|
||||
assert_nil(Fiddle.win32_last_error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue