diff options
author | Oliver Braun <obr@openoffice.org> | 2001-10-12 11:05:56 +0000 |
---|---|---|
committer | Oliver Braun <obr@openoffice.org> | 2001-10-12 11:05:56 +0000 |
commit | 3ef74dab06323c5e368f11d9d578494658aa973e (patch) | |
tree | 058818d1a2dbd8c54a0a9ec20e468c6f79050a4b /shell/source/cmdmail | |
parent | 0ed8d1bf8a7850378eb9dbfbc433a30ca2967096 (diff) |
#93053# throw exception if mail client could not be started
Diffstat (limited to 'shell/source/cmdmail')
-rwxr-xr-x | shell/source/cmdmail/cmdmailsuppl.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/shell/source/cmdmail/cmdmailsuppl.cxx b/shell/source/cmdmail/cmdmailsuppl.cxx index 2554ee8c6306..20545872ffea 100755 --- a/shell/source/cmdmail/cmdmailsuppl.cxx +++ b/shell/source/cmdmail/cmdmailsuppl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: cmdmailsuppl.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: obr $ $Date: 2001-08-23 14:57:47 $ + * last change: $Author: obr $ $Date: 2001-10-12 12:05:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -394,7 +394,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM oslProcess aProcess; rtl_uString **pArgumentArray = (rtl_uString **) aArgumentList.getArray(); - osl_executeProcess( aProgram.pData, + if( osl_Process_E_None == osl_executeProcess( aProgram.pData, pArgumentArray, nArguments, osl_Process_DETACHED | osl_Process_SEARCHPATH, @@ -405,7 +405,11 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM #if SUPD < 634 NULL, #endif - &aProcess); + &aProcess) + ) + { + return; + } } } } @@ -436,6 +440,8 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM OSL_TRACE( OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ).getStr() ); } } + + throw ::com::sun::star::uno::Exception( OUString(), static_cast < XSimpleMailClient * > (this) ); } //------------------------------------------------ |