Skip to content

Commit

Permalink
remove bad null check in InjectDll
Browse files Browse the repository at this point in the history
  • Loading branch information
erfg12 committed Dec 22, 2021
1 parent 4d86170 commit a1bbab0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Memory/memory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,6 @@ public bool InjectDll(String strDllName, bool Execute = false, string LoadLibrar
NTSTATUS status = NtCreateThreadEx(out hThread, AccessMask.StandardRightsAll, (IntPtr)null, injector, mProc.MainModule.BaseAddress, (IntPtr)null, ThreadCreationFlags.HideFromDebugger, 0, 0, 0, (IntPtr)null);
}

if (hThread == (IntPtr)null)
return false;

int Result = WaitForSingleObject(hThread, 10 * 1000);
if (Result == 0x00000080L || Result == 0x00000102L)
{
Expand Down

0 comments on commit a1bbab0

Please sign in to comment.