Skip to content

Commit ca5e6a0

Browse files
committed
test: fix SetLastError's input type
1 parent fab7eab commit ca5e6a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fiddle/test_function.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_last_error
101101
if WINDOWS
102102
def test_win32_last_error
103103
kernel32 = Fiddle.dlopen("kernel32")
104-
args = [kernel32["SetLastError"], [TYPE_LONG], TYPE_VOID]
104+
args = [kernel32["SetLastError"], [-TYPE_LONG], TYPE_VOID]
105105
args << Function::STDCALL if Function.const_defined?(:STDCALL)
106106
set_last_error = Function.new(*args)
107107
assert_nil(Fiddle.win32_last_error)

0 commit comments

Comments
 (0)