From a1a618ead1bf6559cffb903b1d34e05a442957b0 Mon Sep 17 00:00:00 2001 From: suke Date: Mon, 27 Aug 2007 11:38:29 +0000 Subject: * 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 --- ext/win32ole/win32ole.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/win32ole') 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; } -- cgit v1.2.3