Author: mladen.turk(a)jboss.com
Date: 2008-04-08 08:34:58 -0400 (Tue, 08 Apr 2008)
New Revision: 1535
Modified:
trunk/build/install/installer/dhtml.c
Log:
Don't close window too early
Modified: trunk/build/install/installer/dhtml.c
===================================================================
--- trunk/build/install/installer/dhtml.c 2008-04-08 12:32:35 UTC (rev 1534)
+++ trunk/build/install/installer/dhtml.c 2008-04-08 12:34:58 UTC (rev 1535)
@@ -339,8 +339,10 @@
if (IS_INVALID_HANDLE(hHtmlDlg))
return FALSE;
-
- if ((i = WaitForSingleObject(hDlg->hThread, 0)) == WAIT_TIMEOUT) {
+ /* Wait for at least one second so that
+ * window doesn't close too early
+ */
+ if ((i = WaitForSingleObject(hDlg->hThread, 1000)) == WAIT_TIMEOUT) {
if (hDlg->hWnd) {
SendMessage(hDlg->hWnd, WM_CLOSE, 0, 0);
WaitForSingleObject(hDlg->hThread, INFINITE);
Show replies by date