summaryrefslogtreecommitdiffhomepage
path: root/src/process
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-12-05 01:06:23 +0000
committermidipix <writeonce@midipix.org>2020-12-05 01:06:23 +0000
commit3841d321613938cb86b27ee03c52c8a9afc0697c (patch)
treecb51112e882c4420de1cfad89a9b1c71e85c1d67 /src/process
parentef6024ad7dbf0c7e3b59ad007b03bbce5a6abb3d (diff)
downloadntapi-3841d321613938cb86b27ee03c52c8a9afc0697c.tar.bz2
ntapi-3841d321613938cb86b27ee03c52c8a9afc0697c.tar.xz
ipc internals: wrong __ntapi_ipc_page_alloc() ==> correct __ipc_page_alloc().
Diffstat (limited to 'src/process')
-rw-r--r--src/process/ntapi_tt_fork.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/process/ntapi_tt_fork.c b/src/process/ntapi_tt_fork.c
index 5690164..dcd551f 100644
--- a/src/process/ntapi_tt_fork.c
+++ b/src/process/ntapi_tt_fork.c
@@ -17,6 +17,18 @@
static intptr_t __fork_retry_stats = 0;
static intptr_t __fork_resume_stats = 0;
+static int __ipc_memfn(
+ struct dalist_ex * dlist,
+ void ** addr,
+ size_t * alloc_size)
+{
+ (void)dlist;
+ (void)addr;
+ (void)alloc_size;
+
+ return DALIST_EMEMFN;
+}
+
static intptr_t __fastcall __ntapi_tt_fork_finalize(void ** hprocess)
{
int32_t status;
@@ -46,7 +58,7 @@ static intptr_t __fastcall __ntapi_tt_fork_finalize(void ** hprocess)
&__internals->ipc_conns,
sizeof(nt_ipc_conn),
NT_ALLOCATION_GRANULARITY,
- __ntapi_ipc_page_alloc,
+ __ipc_memfn,
DALIST_MEMFN_CUSTOM)))
return status;