зеркало из https://github.com/mozilla/pjs.git
Attempt to fix bsmedberg's OS/2 bustage from bug 237745.
This commit is contained in:
Родитель
910144c333
Коммит
3ecc93585a
|
@ -73,6 +73,7 @@
|
||||||
#include "nsIPromptService.h"
|
#include "nsIPromptService.h"
|
||||||
#include "nsNetCID.h"
|
#include "nsNetCID.h"
|
||||||
#include "nsIObserverService.h"
|
#include "nsIObserverService.h"
|
||||||
|
#include "nsXPFEComponentsCID.h"
|
||||||
|
|
||||||
#ifdef XPCOM_GLUE
|
#ifdef XPCOM_GLUE
|
||||||
#include "nsStringSupport.h"
|
#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;
|
nsCOMPtr<nsIComponentManager> compMgr;
|
||||||
NS_GetComponentManager(getter_AddRefs(compMgr));
|
NS_GetComponentManager(getter_AddRefs(compMgr));
|
||||||
rv = compMgr->CreateInstance( kCmdLineServiceCID,
|
rv = compMgr->CreateInstanceByContractID(
|
||||||
0,
|
NS_COMMANDLINESERVICE_CONTRACTID,
|
||||||
NS_GET_IID( nsICmdLineService ),
|
nsnull, NS_GET_IID(nsICmdLineService),
|
||||||
(void**)aResult );
|
(void**) aResult);
|
||||||
|
|
||||||
if ( NS_FAILED( rv ) || NS_FAILED( ( rv = (*aResult)->Initialize( argc, argv ) ) ) ) {
|
if ( NS_FAILED( rv ) || NS_FAILED( ( rv = (*aResult)->Initialize( argc, argv ) ) ) ) {
|
||||||
#if MOZ_DEBUG_DDE
|
#if MOZ_DEBUG_DDE
|
||||||
|
|
Загрузка…
Ссылка в новой задаче