diff options
Diffstat (limited to 'desktop/win32/source')
-rwxr-xr-x | desktop/win32/source/officeloader/officeloader.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/desktop/win32/source/officeloader/officeloader.cxx b/desktop/win32/source/officeloader/officeloader.cxx index 6375e5662b69..7a08d7ee64c7 100755 --- a/desktop/win32/source/officeloader/officeloader.cxx +++ b/desktop/win32/source/officeloader/officeloader.cxx @@ -356,7 +356,7 @@ int WINAPI _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int ) BOOL bHeadlessMode( FALSE ); { - // Check command line arguments for "-headless" parameter. We only + // Check command line arguments for "--headless" parameter. We only // set the environment variable "ATTACHED_PARENT_PROCESSID" for the headless // mode as self-destruction of the soffice.bin process can lead to // certain side-effects (log-off can result in data-loss, ".lock" is not deleted. @@ -370,8 +370,11 @@ int WINAPI _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int ) for ( n = 1; n < argc; n++ ) { - if ( 0 == _tcsnicmp( argv[n], _T("-headless"), 9 ) ) + if ( 0 == _tcsnicmp( argv[n], _T("-headless"), 9 ) || + 0 == _tcsnicmp( argv[n], _T("--headless"), 9 ) ) + { bHeadlessMode = TRUE; + } } } } |