Jeff Latimer : user32/tests: Deregister the class created by create_dde_window.
Alexandre Julliard
julliard at winehq.org
Wed Sep 3 07:44:02 CDT 2008
Module: wine
Branch: master
Commit: a251a8f166191c10957f82c7642cea2f4e766bee
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a251a8f166191c10957f82c7642cea2f4e766bee
Author: Jeff Latimer <lats at yless4u.com.au>
Date: Tue Sep 2 20:46:51 2008 +1000
user32/tests: Deregister the class created by create_dde_window.
---
dlls/user32/tests/dde.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/tests/dde.c b/dlls/user32/tests/dde.c
index d41ccdd..5785ff0 100644
--- a/dlls/user32/tests/dde.c
+++ b/dlls/user32/tests/dde.c
@@ -73,6 +73,12 @@ static void create_dde_window(HWND *hwnd, LPCSTR name, WNDPROC wndproc)
assert(*hwnd);
}
+static void destroy_dde_window(HWND *hwnd, LPCSTR name)
+{
+ DestroyWindow(*hwnd);
+ UnregisterClass(name, GetModuleHandleA(0));
+}
+
static LRESULT WINAPI dde_server_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
{
UINT_PTR lo, hi;
@@ -243,7 +249,7 @@ static void test_msg_server(HANDLE hproc, HANDLE hthread)
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessageA(&msg);
}
- DestroyWindow(hwnd);
+ destroy_dde_window(&hwnd, "dde_server");
GetExitCodeProcess( hproc, &res );
ok( !res, "client failed with %u error(s)\n", res );
}
@@ -1107,7 +1113,7 @@ static void test_msg_client()
flush_events();
- DestroyWindow(client_hwnd);
+ destroy_dde_window(&client_hwnd, "dde_client");
}
static LRESULT WINAPI hook_dde_client_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
More information about the wine-cvs
mailing list