mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Bug 1110760 - Increase the chances of the wow_helper target code symbols being in the assumed order. r=aklotz
This commit is contained in:
parent
cc298a9892
commit
d4e8fd3af2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user