diff options
author | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-18 02:53:39 +0000 |
---|---|---|
committer | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-18 02:53:39 +0000 |
commit | 3c0cf7856ac88b1c4f93eb9b3877dd2afef4339d (patch) | |
tree | aa82c1a5ef8a25001761f5792c6b8081d931a7f2 /ext/win32ole/win32ole_event.c | |
parent | 8840b033fbf5f33923adbb7a1c38177f56bbe0b2 (diff) |
* ext/win32ole/win32ole.c: use WIN32OLEQueryInterfaceError when failed
to query com interface.
* ext/win32ole/win32ole_event.c: ditto.
* ext/win32ole/win32ole_method.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole/win32ole_event.c')
-rw-r--r-- | ext/win32ole/win32ole_event.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/win32ole/win32ole_event.c b/ext/win32ole/win32ole_event.c index 6de31cb137..899480d7d0 100644 --- a/ext/win32ole/win32ole_event.c +++ b/ext/win32ole/win32ole_event.c @@ -942,7 +942,7 @@ ev_advise(int argc, VALUE *argv, VALUE self) &p); if (FAILED(hr)) { OLE_RELEASE(pTypeInfo); - ole_raise(hr, rb_eRuntimeError, + ole_raise(hr, eWIN32OLEQueryInterfaceError, "failed to query IConnectionPointContainer"); } pContainer = p; @@ -953,7 +953,7 @@ ev_advise(int argc, VALUE *argv, VALUE self) OLE_RELEASE(pContainer); if (FAILED(hr)) { OLE_RELEASE(pTypeInfo); - ole_raise(hr, rb_eRuntimeError, "failed to query IConnectionPoint"); + ole_raise(hr, eWIN32OLEQueryInterfaceError, "failed to query IConnectionPoint"); } pIEV = EVENTSINK_Constructor(); pIEV->m_iid = iid; @@ -961,7 +961,7 @@ ev_advise(int argc, VALUE *argv, VALUE self) (IUnknown*)pIEV, &dwCookie); if (FAILED(hr)) { - ole_raise(hr, rb_eRuntimeError, "Advise Error"); + ole_raise(hr, eWIN32OLEQueryInterfaceError, "Advise Error"); } TypedData_Get_Struct(self, struct oleeventdata, &oleevent_datatype, poleev); |