summaryrefslogtreecommitdiffstats
path: root/mozglue
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 15:18:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 15:18:54 +0000
commita5f28e22cc28ca53d092f6545bc924ee43a8bbe4 (patch)
tree7e02d01734d97de08bdeed66d2d5185f8e4f0a61 /mozglue
parentReleasing progress-linux version 115.8.0esr-1~deb12u1progress7u1. (diff)
downloadfirefox-esr-a5f28e22cc28ca53d092f6545bc924ee43a8bbe4.tar.xz
firefox-esr-a5f28e22cc28ca53d092f6545bc924ee43a8bbe4.zip
Merging upstream version 115.9.0esr.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mozglue')
-rw-r--r--mozglue/misc/RuntimeExceptionModule.cpp18
1 files changed, 5 insertions, 13 deletions
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 <werapi.h> // For WerRegisterRuntimeExceptionModule()
# include <stdlib.h>
-# 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<PVOID>(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<PVOID>(mozilla::GetGeckoProcessType()));
*sModulePath = L'\0';
}
#endif // XP_WIN