From 7da59375cfba3c2141cf9686bc5f5f6011fc6d14 Mon Sep 17 00:00:00 2001 From: "morse%netscape.com" Date: Tue, 9 Jul 2002 00:03:37 +0000 Subject: [PATCH] bug 155679, mapi with turbo and multiple profile doesn't work, r=rdayal, sr=jag --- xpfe/bootstrap/nsNativeAppSupportWin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xpfe/bootstrap/nsNativeAppSupportWin.cpp b/xpfe/bootstrap/nsNativeAppSupportWin.cpp index 8e4a0aa46fa8..af5816840b67 100644 --- a/xpfe/bootstrap/nsNativeAppSupportWin.cpp +++ b/xpfe/bootstrap/nsNativeAppSupportWin.cpp @@ -1770,7 +1770,10 @@ nsNativeAppSupportWin::HandleRequest( LPBYTE request, PRBool newWindow ) { // check wheather it is a MAPI request. If yes, don't open any new // windows and just return. rv = args->GetCmdLineValue(MAPI_STARTUP_ARG, getter_Copies(arg)); - if (NS_SUCCEEDED(rv) && (const char*)arg) return; + if (NS_SUCCEEDED(rv) && (const char*)arg) { + nativeApp->EnsureProfile(args); + return; + } // Try standard startup's command-line handling logic from nsAppRunner.cpp...