We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fab7eab commit ca5e6a0Copy full SHA for ca5e6a0
test/fiddle/test_function.rb
@@ -101,7 +101,7 @@ def test_last_error
101
if WINDOWS
102
def test_win32_last_error
103
kernel32 = Fiddle.dlopen("kernel32")
104
- args = [kernel32["SetLastError"], [TYPE_LONG], TYPE_VOID]
+ args = [kernel32["SetLastError"], [-TYPE_LONG], TYPE_VOID]
105
args << Function::STDCALL if Function.const_defined?(:STDCALL)
106
set_last_error = Function.new(*args)
107
assert_nil(Fiddle.win32_last_error)
0 commit comments