Module: wine Branch: master Commit: 4fa03831a5220168bc12d9285472baf3070fe811 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4fa03831a5220168bc12d92854...
Author: Rob Shearman rob@codeweavers.com Date: Tue Dec 19 19:37:29 2006 +0000
ole32: Reset the message filter at the end of the message filter test.
---
dlls/ole32/tests/marshal.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/tests/marshal.c b/dlls/ole32/tests/marshal.c index aa71790..f573a47 100644 --- a/dlls/ole32/tests/marshal.c +++ b/dlls/ole32/tests/marshal.c @@ -1296,7 +1296,6 @@ static void test_message_filter(void)
hr = CoRegisterMessageFilter(&MessageFilter, &prev_filter); ok_ole_success(hr, CoRegisterMessageFilter); - if (prev_filter) IMessageFilter_Release(prev_filter);
hr = IClassFactory_CreateInstance(cf, NULL, &IID_IUnknown, (LPVOID*)&proxy); ok_ole_success(hr, IClassFactory_CreateInstance); @@ -1308,6 +1307,9 @@ static void test_message_filter(void) ok_no_locks();
end_host_object(tid, thread); + + hr = CoRegisterMessageFilter(prev_filter, NULL); + ok_ole_success(hr, CoRegisterMessageFilter); }
/* test failure case of trying to unmarshal from bad stream */