summaryrefslogtreecommitdiffstats
path: root/mozglue
diff options
context:
space:
mode:
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