summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2001-11-01 15:19:26 +0000
committerTino Rachui <tra@openoffice.org>2001-11-01 15:19:26 +0000
commitc236d93b7dbf72d9e1439ed92a790cf9b47d8543 (patch)
tree8b7836ae8e5866ae20fa16ce4fd9488c94e770b2 /shell
parentaf67f531c165b73339f4c7719bcf8ba0a6c984cb (diff)
#93801#throwing exception only when flag NO_SYSTEM_ERROR_MESSAGE is set
Diffstat (limited to 'shell')
-rw-r--r--shell/source/win32/SysShExec.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx
index 60b46ae4f083..e303d2de338e 100644
--- a/shell/source/win32/SysShExec.cxx
+++ b/shell/source/win32/SysShExec.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: SysShExec.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: tra $ $Date: 2001-05-07 14:43:08 $
+ * last change: $Author: tra $ $Date: 2001-11-01 16:19:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -261,7 +261,9 @@ void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aPa
SetLastError( 0 );
- if ( !ShellExecuteExW( &sei ) )
+ sal_Bool bRet = ShellExecuteExW( &sei );
+
+ if ( !bRet && (nFlags & NO_SYSTEM_ERROR_MESSAGE) )
{
// ShellExecuteEx fails to set an error code
// we return osl_File_E_INVAL