Update inject_stub.c

This commit is contained in:
28Zaaky
2026-07-04 20:22:56 +02:00
committed by GitHub
parent db44dc4048
commit 19c3616b74
-4
View File
@@ -1,9 +1,5 @@
#include "inject.h" #include "inject.h"
/* Lean-build stubs — inject capability excluded via -DLEAN.
* inject_nt_open_process is still called by getsystem/spawn/token;
* returning NULL causes those callers to fail gracefully. */
DWORD inject_find_target(void) { return 0; } DWORD inject_find_target(void) { return 0; }
HANDLE inject_nt_open_process(DWORD pid, DWORD access) { (void)pid; (void)access; return NULL; } HANDLE inject_nt_open_process(DWORD pid, DWORD access) { (void)pid; (void)access; return NULL; }
int inject_remote(DWORD pid, const BYTE *sc, SIZE_T n) { (void)pid; (void)sc; (void)n; return -1; } int inject_remote(DWORD pid, const BYTE *sc, SIZE_T n) { (void)pid; (void)sc; (void)n; return -1; }