Destroy the window we created at the end of wait_idle_thread.

Gerald Pfeifer gerald at pfeifer.com
Sat May 1 15:19:08 CDT 2010


Somehow we create the window, save the handle, but don't seem to
destroy the window at the end.  How about the patch below?

Gerald
---
 dlls/user32/tests/msg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 714e57f..1b4a3cb 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -12275,6 +12275,7 @@ static DWORD CALLBACK wait_idle_thread( void *arg )
 
     hwnd = CreateWindowExA(0, "TestClass", NULL, WS_POPUP, 0, 0, 10, 10, 0, 0, 0, NULL);
     while (GetMessage( &msg, 0, 0, 0 )) DispatchMessage( &msg );
+    DestroyWindow(hwnd);
     return 0;
 }
 
-- 
1.6.6.2



More information about the wine-patches mailing list