summaryrefslogtreecommitdiffstats
path: root/ext/win32ole
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-14 13:25:44 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-14 13:25:44 +0000
commit9bc67b6314bb47bc55330d4d634013053147ea52 (patch)
tree09d90e02f9aa18eb10c6b51a2be745e7cc645c0b /ext/win32ole
parent0ce1fd167fe350b1effca0ba548cd16cafa1beba (diff)
downloadruby-9bc67b6314bb47bc55330d4d634013053147ea52.tar.gz
ruby-9bc67b6314bb47bc55330d4d634013053147ea52.tar.xz
ruby-9bc67b6314bb47bc55330d4d634013053147ea52.zip
* ext/win32ole/win32ole.c (fev_unadvise): no needs to reset
event handlers. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole')
-rw-r--r--ext/win32ole/win32ole.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c
index 7bdd459a0..3aa67bd11 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.9"
+#define WIN32OLE_VERSION "1.1.0"
typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX)
(REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*);
@@ -7562,13 +7562,11 @@ fev_unadvise(VALUE self)
struct oleeventdata *poleev;
Data_Get_Struct(self, struct oleeventdata, poleev);
if (poleev->pConnectionPoint) {
+ ole_msg_loop();
+ evs_delete(poleev->event_id);
poleev->pConnectionPoint->lpVtbl->Unadvise(poleev->pConnectionPoint, poleev->dwCookie);
OLE_RELEASE(poleev->pConnectionPoint);
poleev->pConnectionPoint = NULL;
-
- rb_ivar_set(self, id_events, rb_ary_new());
- evs_delete(poleev->event_id);
- ole_msg_loop();
}
return Qnil;
}