summaryrefslogtreecommitdiff
path: root/desktop/win32
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-08-18 11:16:38 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-08-18 11:16:38 +0000
commit38374eea64e154c2b0ff3cc5c268b04e9aad0ca1 (patch)
treec118b8cf978165c6ffe249daa5de1c1d474c2294 /desktop/win32
parent666b96025ad51b55a0930a24e368caf7be497e6a (diff)
INTEGRATION: CWS hrovista2 (1.9.80); FILE MERGED
2008/07/01 14:00:07 hro 1.9.80.1: #i76966# Let application launcher join soffice process
Diffstat (limited to 'desktop/win32')
-rw-r--r--desktop/win32/source/applauncher/launcher.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/win32/source/applauncher/launcher.cxx b/desktop/win32/source/applauncher/launcher.cxx
index 75d4e0734f..881a18fd67 100644
--- a/desktop/win32/source/applauncher/launcher.cxx
+++ b/desktop/win32/source/applauncher/launcher.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: launcher.cxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
* This file is part of OpenOffice.org.
*
@@ -112,6 +112,11 @@ extern "C" int APIENTRY _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int )
if ( fSuccess )
{
+ // Wait for soffice process to be terminated to allow other applications
+ // to wait for termination of started process
+
+ WaitForSingleObject( aProcessInfo.hProcess, INFINITE );
+
CloseHandle( aProcessInfo.hProcess );
CloseHandle( aProcessInfo.hThread );