Attempt to fix bsmedberg's OS/2 bustage from bug 237745.

This commit is contained in:
dbaron%dbaron.org 2004-10-30 08:01:08 +00:00
Родитель 910144c333
Коммит 3ecc93585a
1 изменённых файлов: 5 добавлений и 7 удалений

Просмотреть файл

@ -73,6 +73,7 @@
#include "nsIPromptService.h"
#include "nsNetCID.h"
#include "nsIObserverService.h"
#include "nsXPFEComponentsCID.h"
#ifdef XPCOM_GLUE
#include "nsStringSupport.h"
@ -2120,15 +2121,12 @@ nsNativeAppSupportOS2::GetCmdLineArgs( LPBYTE request, nsICmdLineService **aResu
}
}
// OK, now create nsICmdLineService object from argc/argv.
static NS_DEFINE_CID( kCmdLineServiceCID, NS_COMMANDLINE_SERVICE_CID );
nsCOMPtr<nsIComponentManager> compMgr;
NS_GetComponentManager(getter_AddRefs(compMgr));
rv = compMgr->CreateInstance( kCmdLineServiceCID,
0,
NS_GET_IID( nsICmdLineService ),
(void**)aResult );
rv = compMgr->CreateInstanceByContractID(
NS_COMMANDLINESERVICE_CONTRACTID,
nsnull, NS_GET_IID(nsICmdLineService),
(void**) aResult);
if ( NS_FAILED( rv ) || NS_FAILED( ( rv = (*aResult)->Initialize( argc, argv ) ) ) ) {
#if MOZ_DEBUG_DDE