summaryrefslogtreecommitdiff
path: root/ext/win32ole
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-11 22:55:47 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-11 22:55:47 +0000
commit488aa8307d06ce9cc64841122c59c019c3d7f087 (patch)
treef3ef81a71c0d2b74652b758c7c19a0e2e1429f88 /ext/win32ole
parent126d6acc503adcbb2480cc04fd7ef0a53ad33827 (diff)
* 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
Diffstat (limited to 'ext/win32ole')
-rw-r--r--ext/win32ole/win32ole.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c
index 66f9b4c..8437e40 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);
}