diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-10 16:11:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-10 16:32:54 +0000 |
commit | 56dd29dbd60005d3dc5d1929e8d7049364418c10 (patch) | |
tree | 05d618061bd7dc0f6bfea5916962535645b9a6f8 /vcl/aqua/source/app | |
parent | b75f3f82f82676784f79c9624bfc8914e23d15d6 (diff) |
propogate exit code out to main
Diffstat (limited to 'vcl/aqua/source/app')
-rw-r--r-- | vcl/aqua/source/app/salinst.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/aqua/source/app/salinst.cxx b/vcl/aqua/source/app/salinst.cxx index 2cc777b80cd3..4b6a96090268 100644 --- a/vcl/aqua/source/app/salinst.cxx +++ b/vcl/aqua/source/app/salinst.cxx @@ -75,7 +75,7 @@ using namespace ::com::sun::star; extern BOOL ImplSVMain(); -static BOOL* gpbInit = 0; +static int* gpnInit = 0; static NSMenu* pDockMenu = nil; static bool bNoSVMain = true; static bool bLeftMain = false; @@ -209,9 +209,9 @@ static void initNSApp() [NSApp activateIgnoringOtherApps: YES]; } -BOOL ImplSVMainHook( BOOL * pbInit ) +BOOL ImplSVMainHook( int * pnInit ) { - gpbInit = pbInit; + gpnInit = pnInit; bNoSVMain = false; initNSApp(); @@ -587,9 +587,9 @@ void AquaSalInstance::handleAppDefinedEvent( NSEvent* pEvent ) break; case AppExecuteSVMain: { - BOOL bResult = ImplSVMain(); - if( gpbInit ) - *gpbInit = bResult; + int nResult = ImplSVMain(); + if( gpnInit ) + *gpnInit = nResult; [NSApp stop: NSApp]; bLeftMain = true; if( pDockMenu ) |