Bug 1110760 - Increase the chances of the wow_helper target code symbols being in the assumed order. r=aklotz

This commit is contained in:
Mike Hommey 2015-01-06 07:32:40 +09:00
parent cc298a9892
commit d4e8fd3af2

View File

@ -7,6 +7,7 @@
namespace sandbox {
// Hooks NtMapViewOfSection to detect the load of dlls.
#pragma code_seg(push, code, ".TargetCode$A")
NTSTATUS WINAPI TargetNtMapViewOfSection(
PatchInfo *patch_info, HANDLE process, PVOID *base, ULONG_PTR zero_bits,
SIZE_T commit_size, PLARGE_INTEGER offset, PSIZE_T view_size,
@ -25,10 +26,13 @@ NTSTATUS WINAPI TargetNtMapViewOfSection(
return ret;
}
#pragma code_seg(pop, code)
// Marks the end of the code to copy to the target process.
#pragma code_seg(push, code, ".TargetCode$B")
NTSTATUS WINAPI TargetEnd() {
return STATUS_SUCCESS;
}
#pragma code_seg(pop, code)
} // namespace sandbox