diff options
author | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-11 22:55:47 +0000 |
---|---|---|
committer | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-11 22:55:47 +0000 |
commit | 488aa8307d06ce9cc64841122c59c019c3d7f087 (patch) | |
tree | f3ef81a71c0d2b74652b758c7c19a0e2e1429f88 | |
parent | 126d6acc503adcbb2480cc04fd7ef0a53ad33827 (diff) | |
download | ruby-488aa8307d06ce9cc64841122c59c019c3d7f087.tar.gz |
* ext/win32ole/win32ole.c (EVENTSINK_Invoke): initialize result
variant value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/win32ole/win32ole.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Sep 12 07:52:59 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp> + + * ext/win32ole/win32ole.c (EVENTSINK_Invoke): initialize result + variant value. + Fri Sep 11 21:52:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * NEWS: update for 1.9.2. based on a patch from Run Paint Run Run diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c index 66f9b4cc8a..8437e40a14 100644 --- a/ext/win32ole/win32ole.c +++ b/ext/win32ole/win32ole.c @@ -130,7 +130,7 @@ const IID IID_IMultiLanguage2 = {0xDCCFC164, 0x2B38, 0x11d2, {0xB7, 0xEC, 0x00, #define WC2VSTR(x) ole_wc2vstr((x), TRUE) -#define WIN32OLE_VERSION "1.4.1" +#define WIN32OLE_VERSION "1.4.2" typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX) (REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*); @@ -7699,6 +7699,7 @@ STDMETHODIMP EVENTSINK_Invoke( } if (pvarResult) { + VariantInit(pvarResult); ole_val2variant(result, pvarResult); } |