From 24de771ed68c0992f6f795507b7fc36f501e7d4b Mon Sep 17 00:00:00 2001 From: shyouhei Date: Sat, 7 Jun 2008 19:14:49 +0000 Subject: merge revision(s) 13951: * ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/win32ole/win32ole.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c index a2cac84cb7..0b7dddd87d 100644 --- a/ext/win32ole/win32ole.c +++ b/ext/win32ole/win32ole.c @@ -79,7 +79,7 @@ #define WC2VSTR(x) ole_wc2vstr((x), TRUE) -#define WIN32OLE_VERSION "0.7.2" +#define WIN32OLE_VERSION "0.7.4" typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX) (REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*); @@ -2103,7 +2103,7 @@ ole_invoke(argc, argv, self, wFlags) &result, &excepinfo, &argErr); if (FAILED(hr)) { /* retry to call args by value */ - if(op.dp.cArgs > cNamedArgs) { + if(op.dp.cArgs >= cNamedArgs) { for(i = cNamedArgs; i < op.dp.cArgs; i++) { n = op.dp.cArgs - i + cNamedArgs - 1; param = rb_ary_entry(paramS, i-cNamedArgs); -- cgit v1.2.3