Project

General

Profile

Actions

Bug #10876

closed

Win32API.new fails when an Array is given for the import argument

Added by aaron@serendipity.cx (Aaron Stone) almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Target version:
-
[ruby-core:68208]

Description

In Ruby 2.2.0, the Win32API.new method fails when an Array is given for the import argument. In all previous versions, it can be either an Array or a String.

The mistake occurred when Aaron Patterson converted to Fiddle and expected the argument would be an Array ("import.map"), then later Nakamura-san switched to expect a String ("import.chars.map") however both of these are incorrect. The code a few lines above does this: [import].join... so it explicitly allows Array or String.

Links to code history and a patch are offered at https://github.com/ruby/ruby/pull/835

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0