diff options
Diffstat (limited to 'ext/Win32API/Win32API.c')
-rw-r--r-- | ext/Win32API/Win32API.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/Win32API/Win32API.c b/ext/Win32API/Win32API.c index 15e1c9d320..a33e989d27 100644 --- a/ext/Win32API/Win32API.c +++ b/ext/Win32API/Win32API.c @@ -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)) { |