Fetch win32 error codes on remote LoadLibrary/GetProcAddress calls (#816)

* Fetch win32 error codes on remote LoadLibrary/GetProcAddress calls

* Fix out of index exc
This commit is contained in:
kizer 2022-04-24 04:37:32 +09:00 committed by GitHub
parent 4d7b3bca9c
commit eb2197132e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 30 deletions

View file

@ -48,7 +48,7 @@ namespace Dalamud.Injector
args.Add(Marshal.PtrToStringUni(argv[i]));
}
if (args[1].ToLowerInvariant() == "launch-test")
if (args.Count >= 2 && args[1].ToLowerInvariant() == "launch-test")
{
Environment.Exit(ProcessLaunchTestCommand(args));
return;