summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-01 11:20:05 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-01 11:20:05 +0000
commit2cce818552453d60681b386c448b7bcc1aca45bd (patch)
tree4b42b8d66617ef3364bf9107a1739b28e3471f8e /ext
parent1e667d5fec33d90136750ecbfcdae3f7d86c5ba1 (diff)
* ext/win32ole/win32ole.c (ole_variant2val): call
folerecord_s_allocate instead of WIN32OLE_RECORD.new. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/win32ole/win32ole.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c
index c110260e726..6c6d75f258a 100644
--- a/ext/win32ole/win32ole.c
+++ b/ext/win32ole/win32ole.c
@@ -143,7 +143,7 @@ const IID IID_IMultiLanguage2 = {0xDCCFC164, 0x2B38, 0x11d2, {0xB7, 0xEC, 0x00,
#define WC2VSTR(x) ole_wc2vstr((x), TRUE)
-#define WIN32OLE_VERSION "1.6.9"
+#define WIN32OLE_VERSION "1.7.0"
typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX)
(REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*);
@@ -2435,7 +2435,7 @@ ole_variant2val(VARIANT *pvar)
{
IRecordInfo *pri = V_RECORDINFO(pvar);
void *prec = V_RECORD(pvar);
- obj = rb_funcall(cWIN32OLE_RECORD, rb_intern("new"), 0);
+ obj = folerecord_s_allocate(cWIN32OLE_RECORD);
olerecord_set_ivar(obj, pri, prec);
break;
}