mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
win: Avoid some more clang complaints
R=mark@chromium.org BUG=chromium:82385 Review URL: https://codereview.chromium.org/1463633002 .
This commit is contained in:
parent
0a717f0d27
commit
74e69ed555
@ -368,7 +368,7 @@ bool CrashpadClient::UseHandler() {
|
||||
reinterpret_cast<WinVMAddress>(&g_critical_section_with_debug_info);
|
||||
}
|
||||
|
||||
ServerToClientMessage response = {0};
|
||||
ServerToClientMessage response = {};
|
||||
|
||||
if (!SendToCrashHandlerServer(ipc_pipe_, message, &response)) {
|
||||
return false;
|
||||
@ -408,7 +408,7 @@ void CrashpadClient::DumpWithoutCrash(const CONTEXT& context) {
|
||||
|
||||
// Create a fake EXCEPTION_POINTERS to give the handler something to work
|
||||
// with.
|
||||
EXCEPTION_POINTERS exception_pointers = {0};
|
||||
EXCEPTION_POINTERS exception_pointers = {};
|
||||
|
||||
// This is logically const, but EXCEPTION_POINTERS does not declare it as
|
||||
// const, so we have to cast that away from the argument.
|
||||
@ -421,7 +421,7 @@ void CrashpadClient::DumpWithoutCrash(const CONTEXT& context) {
|
||||
// some of the top nibble set, so we make sure to pick a value that doesn't,
|
||||
// so as to be unlikely to conflict.
|
||||
const uint32_t kSimulatedExceptionCode = 0x517a7ed;
|
||||
EXCEPTION_RECORD record = {0};
|
||||
EXCEPTION_RECORD record = {};
|
||||
record.ExceptionCode = kSimulatedExceptionCode;
|
||||
#if defined(ARCH_CPU_64_BITS)
|
||||
record.ExceptionAddress = reinterpret_cast<void*>(context.Rip);
|
||||
|
@ -446,7 +446,7 @@ bool ExceptionHandlerServer::ServiceClientConnection(
|
||||
<< message.shutdown.token;
|
||||
return false;
|
||||
}
|
||||
ServerToClientMessage shutdown_response = {0};
|
||||
ServerToClientMessage shutdown_response = {};
|
||||
LoggingWriteFile(service_context.pipe(),
|
||||
&shutdown_response,
|
||||
sizeof(shutdown_response));
|
||||
|
@ -222,7 +222,7 @@ template <class Traits>
|
||||
bool ReadProcessData(HANDLE process,
|
||||
WinVMAddress peb_address_vmaddr,
|
||||
ProcessInfo* process_info) {
|
||||
Traits::Pointer peb_address;
|
||||
typename Traits::Pointer peb_address;
|
||||
if (!AssignIfInRange(&peb_address, peb_address_vmaddr)) {
|
||||
LOG(ERROR) << base::StringPrintf("peb address 0x%x out of range",
|
||||
peb_address_vmaddr);
|
||||
@ -273,8 +273,10 @@ bool ReadProcessData(HANDLE process,
|
||||
// Walk the PEB LDR structure (doubly-linked list) to get the list of loaded
|
||||
// modules. We use this method rather than EnumProcessModules to get the
|
||||
// modules in initialization order rather than memory order.
|
||||
Traits::Pointer last = peb_ldr_data.InInitializationOrderModuleList.Blink;
|
||||
for (Traits::Pointer cur = peb_ldr_data.InInitializationOrderModuleList.Flink;
|
||||
typename Traits::Pointer last =
|
||||
peb_ldr_data.InInitializationOrderModuleList.Blink;
|
||||
for (typename Traits::Pointer cur =
|
||||
peb_ldr_data.InInitializationOrderModuleList.Flink;
|
||||
;
|
||||
cur = ldr_data_table_entry.InInitializationOrderLinks.Flink) {
|
||||
// |cur| is the pointer to the LIST_ENTRY embedded in the
|
||||
|
Loading…
x
Reference in New Issue
Block a user