Update inject.c

This commit is contained in:
DavidXanatos 2022-10-26 21:21:59 +02:00
parent 9eba5f02e3
commit 94ebdd9103
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}