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:
Scott Graham 2015-12-02 13:52:03 -08:00
parent 384fd93d6d
commit 894a06070e
2 changed files with 1 additions and 2 deletions

View File

@ -339,7 +339,6 @@ int HandlerMain(int argc, char* argv[]) {
#elif defined(OS_WIN)
ExceptionHandlerServer exception_handler_server(!options.pipe_name.empty());
std::string pipe_name;
if (!options.pipe_name.empty()) {
exception_handler_server.SetPipeName(base::UTF8ToUTF16(options.pipe_name));
} else if (options.handshake_handle != INVALID_HANDLE_VALUE) {

View File

@ -224,7 +224,7 @@ bool ReadProcessData(HANDLE process,
ProcessInfo* process_info) {
typename Traits::Pointer peb_address;
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);
return false;
}