Source code

Revision control

Copy as Markdown

Other Tools

# HG changeset patch
# User Tom Ritter <tom@mozilla.com>
# Date 1516825559 21600
# Wed Jan 24 14:25:59 2018 -0600
# Node ID 9ce534c9f572dfb5abd3e409d9cfec069ccee0cd
# Parent 6413cb580dccd986c61e6dbdc72fc370765b8f10
Bug 1431797 Correct the capitalization of headers inside the chromium code so MinGW can compile
diff --git a/security/sandbox/chromium/base/rand_util_win.cc b/security/sandbox/chromium/base/rand_util_win.cc
--- a/security/sandbox/chromium/base/rand_util_win.cc
+++ b/security/sandbox/chromium/base/rand_util_win.cc
@@ -7,17 +7,17 @@
#include <windows.h>
#include <stddef.h>
#include <stdint.h>
// #define needed to link in RtlGenRandom(), a.k.a. SystemFunction036. See the
// "Community Additions" comment on MSDN here:
#define SystemFunction036 NTAPI SystemFunction036
-#include <NTSecAPI.h>
+#include <ntsecapi.h>
#undef SystemFunction036
#include <algorithm>
#include <limits>
#include "base/logging.h"
namespace base {
diff --git a/security/sandbox/chromium/base/win/pe_image.h b/security/sandbox/chromium/base/win/pe_image.h
--- a/security/sandbox/chromium/base/win/pe_image.h
+++ b/security/sandbox/chromium/base/win/pe_image.h
@@ -14,17 +14,17 @@
#include <windows.h>
#include <stdint.h>
#if defined(_WIN32_WINNT_WIN8)
// The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h.
#undef FACILITY_VISUALCPP
#endif
-#include <DelayIMP.h>
+#include <delayimp.h>
namespace base {
namespace win {
// This class is a wrapper for the Portable Executable File Format (PE).
// Its main purpose is to provide an easy way to work with imports and exports
// from a file, mapped in memory as image.
class PEImage {
diff --git a/security/sandbox/chromium/sandbox/win/src/sandbox_rand.cc b/security/sandbox/chromium/sandbox/win/src/sandbox_rand.cc
--- a/security/sandbox/chromium/sandbox/win/src/sandbox_rand.cc
+++ b/security/sandbox/chromium/sandbox/win/src/sandbox_rand.cc
@@ -5,17 +5,17 @@
#include "sandbox/win/src/sandbox_rand.h"
#include <windows.h>
// #define needed to link in RtlGenRandom(), a.k.a. SystemFunction036. See the
// "Community Additions" comment on MSDN here:
#define SystemFunction036 NTAPI SystemFunction036
-#include <NTSecAPI.h>
+#include <ntsecapi.h>
#undef SystemFunction036
namespace sandbox {
bool GetRandom(unsigned int* random_value) {
return RtlGenRandom(random_value, sizeof(unsigned int)) != false;
}