| 31 | }; |
| 32 | |
| 33 | bool DbgMiniDump::StartLoad(const StringImpl& path) |
| 34 | { |
| 35 | if (!mMF.Open(path)) |
| 36 | return false; |
| 37 | |
| 38 | struct _Header |
| 39 | { |
| 40 | uint32 mSignature; |
| 41 | uint32 mVersion; |
| 42 | uint32 mNumberOfStreams; |
| 43 | uint32 mStreamDirectoryRVA; |
| 44 | uint32 mCheckSum; |
| 45 | uint32 TimeDateStamp; |
| 46 | uint64 Flags; |
| 47 | }; |
| 48 | |
| 49 | _Header& header = *(_Header*)((uint8*)mMF.mData); |
| 50 | if (header.mSignature != 'PMDM') |
| 51 | return false; |
| 52 | |
| 53 | mDirectory.mVals = (StreamDirectoryEntry*)((uint8*)mMF.mData + header.mStreamDirectoryRVA); |
| 54 | mDirectory.mSize = header.mNumberOfStreams; |
| 55 | |
| 56 | return true; |
| 57 | } |
| 58 | |
| 59 | int DbgMiniDump::GetTargetBitCount() |
| 60 | { |
no test coverage detected