From 94ebdd91033185242e953087014ca09563c0b38d Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Wed, 26 Oct 2022 21:21:59 +0200 Subject: [PATCH] Update inject.c --- Sandboxie/core/low/inject.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sandboxie/core/low/inject.c b/Sandboxie/core/low/inject.c index 671a03d7..c15117cf 100644 --- a/Sandboxie/core/low/inject.c +++ b/Sandboxie/core/low/inject.c @@ -379,6 +379,8 @@ _FX void InitInject(SBIELOW_DATA *data, void *DetourCode) { inject->SbieDll_Length = (SHORT)extra->NativeSbieDll_length; inject->SbieDll_MaxLen = inject->SbieDll_Length + sizeof(WCHAR); + inject->SbieDll_Buf32 = + (ULONG)((ULONG_PTR)extra + extra->NativeSbieDll_offset); inject->SbieDll_Buf64 = (ULONG64)((ULONG_PTR)extra + extra->NativeSbieDll_offset); }