mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-28 15:50:26 +08:00
Build fixes for Clang on Windows
See e.g. http://build.chromium.org/p/chromium.fyi/builders/CrWinClang/builds/4502/steps/compile/logs/stdio BUG=chromium:82385 R=mark@chromium.org Review URL: https://codereview.chromium.org/1473073008 . Patch from Hans Wennborg <hans@chromium.org>.
This commit is contained in:
parent
9b92d2fb71
commit
33414779e1
@ -86,8 +86,10 @@ bool PEImageReader::GetCrashpadInfo(
|
||||
INITIALIZATION_STATE_DCHECK_VALID(initialized_);
|
||||
|
||||
IMAGE_SECTION_HEADER section;
|
||||
if (!GetSectionByName<NtHeadersForTraits<Traits>::type>("CPADinfo", §ion))
|
||||
if (!GetSectionByName<typename NtHeadersForTraits<Traits>::type>("CPADinfo",
|
||||
§ion)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (section.Misc.VirtualSize < sizeof(process_types::CrashpadInfo<Traits>)) {
|
||||
LOG(WARNING) << "small crashpad info section size "
|
||||
|
@ -380,9 +380,9 @@ void ProcessSnapshotWin::AddMemorySnapshotForLdrLIST_ENTRY(
|
||||
PointerVector<internal::MemorySnapshotWin>* into) {
|
||||
// Walk the doubly-linked list of entries, adding the list memory itself, as
|
||||
// well as pointed-to strings.
|
||||
Traits::Pointer last = le.Blink;
|
||||
typename Traits::Pointer last = le.Blink;
|
||||
process_types::LDR_DATA_TABLE_ENTRY<Traits> entry;
|
||||
Traits::Pointer cur = le.Flink;
|
||||
typename Traits::Pointer cur = le.Flink;
|
||||
for (;;) {
|
||||
// |cur| is the pointer to LIST_ENTRY embedded in the LDR_DATA_TABLE_ENTRY.
|
||||
// So we need to offset back to the beginning of the structure.
|
||||
|
Loading…
x
Reference in New Issue
Block a user