From 328078c4d259e52db1a4848c00ee0b420775c91c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 8 Apr 2024 17:18:07 +0200 Subject: Adding upstream version 115.9.0esr. Signed-off-by: Daniel Baumann --- mozglue/misc/RuntimeExceptionModule.cpp | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'mozglue/misc/RuntimeExceptionModule.cpp') diff --git a/mozglue/misc/RuntimeExceptionModule.cpp b/mozglue/misc/RuntimeExceptionModule.cpp index 6b7e55c5e9..9a76bb22df 100644 --- a/mozglue/misc/RuntimeExceptionModule.cpp +++ b/mozglue/misc/RuntimeExceptionModule.cpp @@ -21,7 +21,6 @@ # include // For WerRegisterRuntimeExceptionModule() # include -# include "mozilla/mozalloc_oom.h" # include "mozilla/Unused.h" using mozilla::Unused; @@ -31,12 +30,6 @@ namespace CrashReporter { #ifdef XP_WIN -struct InProcessWindowsErrorReportingData { - uint32_t mProcessType; - size_t* mOOMAllocationSizePtr; -}; - -static InProcessWindowsErrorReportingData gInProcessWerData; const static size_t kModulePathLength = MAX_PATH + 1; static wchar_t sModulePath[kModulePathLength]; @@ -86,10 +79,9 @@ void RegisterRuntimeExceptionModule() { return; } - gInProcessWerData.mProcessType = mozilla::GetGeckoProcessType(); - gInProcessWerData.mOOMAllocationSizePtr = &gOOMAllocationSize; - if (FAILED(::WerRegisterRuntimeExceptionModule(sModulePath, - &gInProcessWerData))) { + if (FAILED(::WerRegisterRuntimeExceptionModule( + sModulePath, + reinterpret_cast(mozilla::GetGeckoProcessType())))) { // The registration failed null out sModulePath to record this. *sModulePath = L'\0'; return; @@ -101,8 +93,8 @@ void UnregisterRuntimeExceptionModule() { #ifdef XP_WIN // If sModulePath is set then we have registered the module. if (*sModulePath) { - Unused << ::WerUnregisterRuntimeExceptionModule(sModulePath, - &gInProcessWerData); + Unused << ::WerUnregisterRuntimeExceptionModule( + sModulePath, reinterpret_cast(mozilla::GetGeckoProcessType())); *sModulePath = L'\0'; } #endif // XP_WIN -- cgit v1.2.3