diff options
Diffstat (limited to 'KMemDriver/VAD.c')
-rw-r--r-- | KMemDriver/VAD.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/KMemDriver/VAD.c b/KMemDriver/VAD.c index 7c3e9d6..bb3cbb6 100644 --- a/KMemDriver/VAD.c +++ b/KMemDriver/VAD.c @@ -162,9 +162,9 @@ NTSTATUS VADUnlink(IN PEPROCESS pProcess, IN ULONG_PTR address) { pVadShort->u.VadFlags.Protection = MM_ZERO_ACCESS; } - // Invalid VAD type - else - status = STATUS_INVALID_PARAMETER; + else { + RtlAvlRemoveNode((PMM_AVL_TABLE)((PUCHAR)pProcess + VAD_TREE_1803), (PMMADDRESS_NODE)pVadShort); + } return status; }
\ No newline at end of file |