Skip to content

Commit

Permalink
Fix prototypes for NtAllocateVirtualMemoryEx & NtMapViewOfSectionEx (…
Browse files Browse the repository at this point in the history
…MEM_EXTENDED_PARAMETER is a pointer) - thanks Michael Weiser #52
  • Loading branch information
kevoreilly committed Dec 23, 2022
1 parent b27cfd5 commit 06faf94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hook_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ HOOKDEF(NTSTATUS, WINAPI, NtMapViewOfSectionEx,
__inout PSIZE_T ViewSize,
__in ULONG AllocationType,
__in ULONG Win32Protect,
__inout_opt MEM_EXTENDED_PARAMETER Parameters,
__inout_opt MEM_EXTENDED_PARAMETER *Parameters,
__in ULONG ParameterCount
) {
NTSTATUS ret = Old_NtMapViewOfSectionEx(SectionHandle, ProcessHandle, BaseAddress, SectionOffset, ViewSize,
Expand Down Expand Up @@ -707,7 +707,7 @@ HOOKDEF(NTSTATUS, WINAPI, NtAllocateVirtualMemoryEx,
__inout PSIZE_T RegionSize,
__in ULONG AllocationType,
__in ULONG PageProtection,
__inout MEM_EXTENDED_PARAMETER Parameters,
__inout MEM_EXTENDED_PARAMETER *Parameters,
__in ULONG ParameterCount
) {
NTSTATUS ret = Old_NtAllocateVirtualMemoryEx(ProcessHandle, BaseAddress, RegionSize, AllocationType, PageProtection, Parameters, ParameterCount);
Expand Down
4 changes: 2 additions & 2 deletions hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ HOOKDEF(NTSTATUS, WINAPI, NtMapViewOfSectionEx,
__inout PSIZE_T ViewSize,
__in ULONG AllocationType,
__in ULONG Win32Protect,
__inout_opt MEM_EXTENDED_PARAMETER Parameters,
__inout_opt MEM_EXTENDED_PARAMETER *Parameters,
__in ULONG ParameterCount
);

Expand Down Expand Up @@ -1227,7 +1227,7 @@ HOOKDEF(NTSTATUS, WINAPI, NtAllocateVirtualMemoryEx,
__inout PSIZE_T RegionSize,
__in ULONG AllocationType,
__in ULONG PageProtection,
__inout_opt MEM_EXTENDED_PARAMETER Parameters,
__inout_opt MEM_EXTENDED_PARAMETER *Parameters,
__in ULONG ParameterCount
);

Expand Down

0 comments on commit 06faf94

Please sign in to comment.