summaryrefslogtreecommitdiff
path: root/padmin/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-10 16:11:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-10 16:32:54 +0000
commit56dd29dbd60005d3dc5d1929e8d7049364418c10 (patch)
tree05d618061bd7dc0f6bfea5916962535645b9a6f8 /padmin/source
parentb75f3f82f82676784f79c9624bfc8914e23d15d6 (diff)
propogate exit code out to main
Diffstat (limited to 'padmin/source')
-rw-r--r--padmin/source/pamain.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/padmin/source/pamain.cxx b/padmin/source/pamain.cxx
index 7bf9afd2d718..2c389ebe5d93 100644
--- a/padmin/source/pamain.cxx
+++ b/padmin/source/pamain.cxx
@@ -59,7 +59,7 @@ using namespace comphelper;
class MyApp : public Application
{
public:
- void Main();
+ int Main();
virtual USHORT Exception( USHORT nError );
static void ReadStringHook( String& );
@@ -94,7 +94,7 @@ USHORT MyApp::Exception( USHORT nError )
return 0;
}
-void MyApp::Main()
+int MyApp::Main()
{
PADialog* pPADialog;
@@ -153,7 +153,7 @@ void MyApp::Main()
BOOL bQuitApp;
if( !InitAccessBridge( true, bQuitApp ) )
if( bQuitApp )
- return;
+ return EXIT_FAILURE;
}
// initialize test-tool library (if available)
@@ -174,6 +174,7 @@ void MyApp::Main()
*/
::ucbhelper::ContentBroker::deinitialize();
+ return EXIT_SUCCESS;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */