We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eb3832 commit 26edee1Copy full SHA for 26edee1
Spore ModAPI Launcher/Program.cs
@@ -252,6 +252,10 @@ void InjectSporeProcess(string dllEnding)
252
}
253
254
IntPtr hDLLInjectorHandle = Injector.InjectDLL(this.ProcessInfo, modApiDllInjectorPath);
255
+ if (hDLLInjectorHandle == IntPtr.Zero)
256
+ {
257
+ throw new Win32Exception("Failed to inject DLL: " + modApiDllInjectorPath);
258
+ }
259
260
string[] dlls = GetDLLsToInject(dllEnding);
261
0 commit comments