ihack4falafel / DLL-Injection

C# program that takes process id and path to DLL payload to perform DLL injection method.
51 stars 19 forks source link

Check against IntPtr.Zero, not null #1

Open ViRb3 opened 4 years ago

ViRb3 commented 4 years ago

For an example here: https://github.com/ihack4falafel/DLL-Injection/blob/a250c9d3d650c4bc982ccf514a3280d650761b60/DllInjection/DllInjection/Program.cs#L176-L187

The result will never be null, but it could be of type IntPtr.Zero, which is what you are trying to check.