Commit 4fa03831 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Reset the message filter at the end of the message filter test.

parent a089e579
...@@ -1296,7 +1296,6 @@ static void test_message_filter(void) ...@@ -1296,7 +1296,6 @@ static void test_message_filter(void)
hr = CoRegisterMessageFilter(&MessageFilter, &prev_filter); hr = CoRegisterMessageFilter(&MessageFilter, &prev_filter);
ok_ole_success(hr, CoRegisterMessageFilter); ok_ole_success(hr, CoRegisterMessageFilter);
if (prev_filter) IMessageFilter_Release(prev_filter);
hr = IClassFactory_CreateInstance(cf, NULL, &IID_IUnknown, (LPVOID*)&proxy); hr = IClassFactory_CreateInstance(cf, NULL, &IID_IUnknown, (LPVOID*)&proxy);
ok_ole_success(hr, IClassFactory_CreateInstance); ok_ole_success(hr, IClassFactory_CreateInstance);
...@@ -1308,6 +1307,9 @@ static void test_message_filter(void) ...@@ -1308,6 +1307,9 @@ static void test_message_filter(void)
ok_no_locks(); ok_no_locks();
end_host_object(tid, thread); 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 */ /* test failure case of trying to unmarshal from bad stream */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment