1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/Win32API/Win32API (Win32API_initialize): should check number of

papameters.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2003-03-06 16:26:43 +00:00
parent 280039eb20
commit 5208fec1cf

View file

@ -106,6 +106,11 @@ Win32API_initialize(self, dllname, proc, import, export)
}
break;
}
if (16 < RARRAY(a_import)->len) {
rb_raise(rb_eRuntimeError, "too many parameters: %d\n", RARRAY(a_import)->len);
}
rb_iv_set(self, "__import__", a_import);
if (NIL_P(export)) {