[PATCH] Fixed some cases where winhlp32 didn't shutdown as expected (including #19081).

Eric Pouech eric.pouech at orange.fr
Sat Jun 27 01:34:45 CDT 2009




A+
---

 programs/winhlp32/winhelp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/programs/winhlp32/winhelp.c b/programs/winhlp32/winhelp.c
index 08d3875..56244d3 100644
--- a/programs/winhlp32/winhelp.c
+++ b/programs/winhlp32/winhelp.c
@@ -1736,7 +1736,7 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
                            WINHELP_GetWindowInfo(hlpfile, wndname), show);
 
     /* Message loop */
-    while (GetMessage(&msg, 0, 0, 0))
+    while ((Globals.win_list || Globals.active_popup) && GetMessage(&msg, 0, 0, 0))
     {
         TranslateMessage(&msg);
         DispatchMessage(&msg);





More information about the wine-patches mailing list