diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-08-17 12:35:41 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-08-17 12:35:41 +0000 |
commit | f9747af5e47aa12fb39ba3b61ef9c77c47aaaff8 (patch) | |
tree | 2aad57738fa2cd2cd705b00a1a3d81abd910c54a /setup_native/source/win32/customactions/quickstarter | |
parent | 646d54c521a111b00186b8a00a739d8bad19b480 (diff) |
INTEGRATION: CWS qssyncterm (1.4.180); FILE MERGED
2007/08/02 14:08:25 hro 1.4.180.1: #149979# Wait at most 30 seconds to give Quickstarter enough time to terminate before setup continues
Diffstat (limited to 'setup_native/source/win32/customactions/quickstarter')
-rw-r--r-- | setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx b/setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx index bfe88279def9..6cf12fd93f8d 100644 --- a/setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx +++ b/setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx @@ -4,9 +4,9 @@ * * $RCSfile: shutdown_quickstart.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-07 16:34:27 $ + * last change: $Author: ihi $ $Date: 2007-08-17 13:35:41 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -59,6 +59,15 @@ static BOOL CALLBACK EnumWindowsProc( HWND hWnd, LPARAM lParam ) if ( uMsgShutdownQuickstart ) SendMessageA( hWnd, uMsgShutdownQuickstart, 0, 0 ); + + HANDLE hProcess = OpenProcess( SYNCHRONIZE, FALSE, dwProcessId ); + + if ( hProcess ) + { + WaitForSingleObject( hProcess, 30000 ); // Wait at most 30 seconds for process to terminate + CloseHandle( hProcess ); + } + return FALSE; } |