diff --git a/mozilla/xpcom/sample/program/nsTestSample.cpp b/mozilla/xpcom/sample/program/nsTestSample.cpp index 0e59a19954e..ae514d59aae 100644 --- a/mozilla/xpcom/sample/program/nsTestSample.cpp +++ b/mozilla/xpcom/sample/program/nsTestSample.cpp @@ -31,7 +31,7 @@ #include #include -#define NS_SAMPLE_PROGID "component://netscape/sample" +#define NS_SAMPLE_CONTRACTID "@mozilla.org/sample;1" main() { @@ -59,10 +59,10 @@ main() (void) nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, nsnull); // Create an instance of our component - nsCOMPtr mysample = do_CreateInstance(NS_SAMPLE_PROGID, &rv); + nsCOMPtr mysample = do_CreateInstance(NS_SAMPLE_CONTRACTID, &rv); if (NS_FAILED(rv)) { - printf("ERROR: Cannot create instance of component " NS_SAMPLE_PROGID " [%x].\n" + printf("ERROR: Cannot create instance of component " NS_SAMPLE_CONTRACTID " [%x].\n" "Debugging hint:\n" "\tsetenv NSPR_LOG_MODULES nsComponentManager:5\n" "\tsetenv NSPR_LOG_FILE xpcom.log\n"