Bug 513156 VC7.1 bustage fix r=vlad

This commit is contained in:
Neil Rashbrook 2009-09-04 22:57:33 +01:00
Родитель 4093f253d0
Коммит 8493cc8937
3 изменённых файлов: 9 добавлений и 4 удалений

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

@ -39,6 +39,7 @@
#include <stdarg.h>
#include "prmem.h"
#include "prprf.h"
#include "nsIServiceManager.h"
@ -117,7 +118,7 @@ CanvasUtils::LogMessagef (const char *fmt, ...)
nsCOMPtr<nsIConsoleService> console(do_GetService(NS_CONSOLESERVICE_CONTRACTID));
if (console) {
vsnprintf(buf, 256, fmt, ap);
PR_vsnprintf(buf, 256, fmt, ap);
console->LogStringMessage(NS_ConvertUTF8toUTF16(nsDependentCString(buf)).get());
fprintf(stderr, "%s\n", buf);
}

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

@ -1,6 +1,8 @@
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#include "WebGLContext.h"
#include "prprf.h"
#include "nsIConsoleService.h"
#include "nsIScriptSecurityManager.h"
#include "nsIPrefBranch.h"
@ -170,7 +172,7 @@ WebGLContext::LogMessage(const char *fmt, ...)
nsCOMPtr<nsIConsoleService> console(do_GetService(NS_CONSOLESERVICE_CONTRACTID));
if (console) {
vsnprintf(buf, 256, fmt, ap);
PR_vsnprintf(buf, 256, fmt, ap);
console->LogStringMessage(NS_ConvertUTF8toUTF16(nsDependentCString(buf)).get());
fprintf(stderr, "%s\n", buf);
}
@ -187,7 +189,7 @@ WebGLContext::ErrorMessage(const char *fmt, ...)
nsCOMPtr<nsIConsoleService> console(do_GetService(NS_CONSOLESERVICE_CONTRACTID));
if (console) {
vsnprintf(buf, 256, fmt, ap);
PR_vsnprintf(buf, 256, fmt, ap);
console->LogStringMessage(NS_ConvertUTF8toUTF16(nsDependentCString(buf)).get());
fprintf(stderr, "%s\n", buf);
}

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

@ -38,6 +38,8 @@
#include <stdarg.h>
#include "prprf.h"
#include "nsGLPbuffer.h"
#include "nsIConsoleService.h"
@ -58,7 +60,7 @@ nsGLPbuffer::LogMessage(const char *fmt, ...)
nsCOMPtr<nsIConsoleService> console(do_GetService(NS_CONSOLESERVICE_CONTRACTID));
if (console) {
vsnprintf(buf, 256, fmt, ap);
PR_vsnprintf(buf, 256, fmt, ap);
console->LogStringMessage(NS_ConvertUTF8toUTF16(nsDependentCString(buf)).get());
fprintf(stderr, "%s\n", buf);
}