DLL-Injection icon indicating copy to clipboard operation
DLL-Injection copied to clipboard

Check against IntPtr.Zero, not null

Open ViRb3 opened this issue 4 years ago • 0 comments

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.

ViRb3 avatar Jun 19 '20 13:06 ViRb3