mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 06:20:41 +00:00
fix call to CreateInstance, now that you can create one with a ProgID
This commit is contained in:
parent
09edb893cb
commit
6568ddd326
@ -222,16 +222,11 @@ int main(int argc, char* argv[])
|
||||
/* Comments/questions to alecf@netscape.com */
|
||||
{
|
||||
nsIAppShellService *messenger;
|
||||
nsCID cid;
|
||||
nsresult result =
|
||||
nsRepository::ProgIDToCLSID("component://netscape/messenger", &cid);
|
||||
|
||||
if (NS_SUCCEEDED(result)) {
|
||||
result = nsRepository::CreateInstance(cid,
|
||||
NULL,
|
||||
nsIAppShellService::IID,
|
||||
(void **)&messenger);
|
||||
}
|
||||
const char *messengerProgID = "component://netscape/messenger";
|
||||
nsresult result = nsRepository::CreateInstance(messengerProgID,
|
||||
nsnull,
|
||||
nsIAppShellService::IID(),
|
||||
(void **)&messenger);
|
||||
if (NS_SUCCEEDED(result)) {
|
||||
result = messenger->Initialize();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user