зеркало из https://github.com/mozilla/gecko-dev.git
Bug 613725 and bug 593106 - Crashes on Windows because varargs and references don't mix, use a pointer instead. r=Mossop a=blocking2.0
This commit is contained in:
Родитель
3f5396f20f
Коммит
849e8e456b
|
@ -574,11 +574,11 @@ nsCommandLine::Init(PRInt32 argc, char** argv, nsIFile* aWorkingDir,
|
|||
}
|
||||
|
||||
static void
|
||||
LogConsoleMessage(const nsString& fmt, ...)
|
||||
LogConsoleMessage(const PRUnichar* fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
PRUnichar* msg = nsTextFormatter::vsmprintf(fmt.get(), args);
|
||||
PRUnichar* msg = nsTextFormatter::vsmprintf(fmt, args);
|
||||
va_end(args);
|
||||
|
||||
nsCOMPtr<nsIConsoleService> cs = do_GetService("@mozilla.org/consoleservice;1");
|
||||
|
@ -619,7 +619,7 @@ nsCommandLine::EnumerateHandlers(EnumerateHandlersCallback aCallback, void *aClo
|
|||
|
||||
nsCOMPtr<nsICommandLineHandler> clh(do_GetService(contractID.get()));
|
||||
if (!clh) {
|
||||
LogConsoleMessage(NS_LITERAL_STRING("Contract ID '%s' was registered as a command line handler for entry '%s', but could not be created."),
|
||||
LogConsoleMessage(NS_LITERAL_STRING("Contract ID '%s' was registered as a command line handler for entry '%s', but could not be created.").get(),
|
||||
contractID.get(), entry.get());
|
||||
continue;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче