mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-17 16:43:53 +00:00
win: Fix some warnings reported by /analyze
Reported by brucedawson@chromium.org. R=mark@chromium.org BUG=chromium:427616 Review URL: https://codereview.chromium.org/1489293004 .
This commit is contained in:
parent
384fd93d6d
commit
894a06070e
@ -339,7 +339,6 @@ int HandlerMain(int argc, char* argv[]) {
|
|||||||
#elif defined(OS_WIN)
|
#elif defined(OS_WIN)
|
||||||
ExceptionHandlerServer exception_handler_server(!options.pipe_name.empty());
|
ExceptionHandlerServer exception_handler_server(!options.pipe_name.empty());
|
||||||
|
|
||||||
std::string pipe_name;
|
|
||||||
if (!options.pipe_name.empty()) {
|
if (!options.pipe_name.empty()) {
|
||||||
exception_handler_server.SetPipeName(base::UTF8ToUTF16(options.pipe_name));
|
exception_handler_server.SetPipeName(base::UTF8ToUTF16(options.pipe_name));
|
||||||
} else if (options.handshake_handle != INVALID_HANDLE_VALUE) {
|
} else if (options.handshake_handle != INVALID_HANDLE_VALUE) {
|
||||||
|
@ -224,7 +224,7 @@ bool ReadProcessData(HANDLE process,
|
|||||||
ProcessInfo* process_info) {
|
ProcessInfo* process_info) {
|
||||||
typename Traits::Pointer peb_address;
|
typename Traits::Pointer peb_address;
|
||||||
if (!AssignIfInRange(&peb_address, peb_address_vmaddr)) {
|
if (!AssignIfInRange(&peb_address, peb_address_vmaddr)) {
|
||||||
LOG(ERROR) << base::StringPrintf("peb address 0x%x out of range",
|
LOG(ERROR) << base::StringPrintf("peb address 0x%llx out of range",
|
||||||
peb_address_vmaddr);
|
peb_address_vmaddr);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user