Hi all,
Passing a Fixnum when you should have passed a String (pointer) causes a
segfault in Win32API.
I''ve already reported this on RubyForge (Bug #3904):
require ''Win32API''
RegFormat = Win32API.new(''user32'',
''RegisterClipboardFormat'', ''P'',
''I'')
RegFormat.call(1) # Boom!
I''ve traced the error to line 194 in Win32API.c:
ret = ApiFunction(param);
Where ApiFunction is defined as:
FARPROC ApiFunction = (FARPROC)NUM2ULONG(obj_proc);
Any idea what the patch should be? I''d rather get a TypeError than see
a segfault.
Dan