summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-27 11:38:29 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-27 11:38:29 +0000
commita1a618ead1bf6559cffb903b1d34e05a442957b0 (patch)
tree5501b6bc8a23b40d9232332575339d626f6fc839 /ext
parentfd618e22343d82f5ca5ec0d21a476c0a534220d9 (diff)
* ext/win32ole/win32ole.c (ole_type_progid): fix the bug.
[ruby-dev:31576] * test/win32ole/test_win32ole_type.rb (test_initialize): remove duplicate assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13286 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 28a6ec79f7..329dd9be25 100644
--- a/ext/win32ole/win32ole.c
+++ b/ext/win32ole/win32ole.c
@@ -116,7 +116,7 @@
#define WC2VSTR(x) ole_wc2vstr((x), TRUE)
-#define WIN32OLE_VERSION "1.0.5"
+#define WIN32OLE_VERSION "1.0.6"
typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX)
(REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*);
@@ -5193,7 +5193,7 @@ ole_type_progid(ITypeInfo *pTypeInfo)
return progid;
hr = ProgIDFromCLSID(&pTypeAttr->guid, &pbuf);
if (SUCCEEDED(hr))
- progid = WC2VSTR(pbuf);
+ progid = ole_wc2vstr(pbuf, FALSE);
OLE_RELEASE_TYPEATTR(pTypeInfo, pTypeAttr);
return progid;
}