Fixing travis lint diff.

This commit is contained in:
Ben Vanik 2016-01-13 22:55:28 -08:00
parent 3e2422acda
commit 9473f20c7f
1 changed files with 7 additions and 7 deletions

View File

@ -297,13 +297,13 @@ bool XexModule::Load(const std::string& name, const std::string& path,
auto address = sec_header->load_address + (page * page_size);
auto size = desc.size * page_size;
switch (desc.info) {
case XEX_SECTION_CODE:
case XEX_SECTION_READONLY_DATA:
heap->Protect(address, size, kMemoryProtectRead);
break;
case XEX_SECTION_DATA:
heap->Protect(address, size, kMemoryProtectRead | kMemoryProtectWrite);
break;
case XEX_SECTION_CODE:
case XEX_SECTION_READONLY_DATA:
heap->Protect(address, size, kMemoryProtectRead);
break;
case XEX_SECTION_DATA:
heap->Protect(address, size, kMemoryProtectRead | kMemoryProtectWrite);
break;
}
page += desc.size;