From af8f1f2c14370036c07377b5f8d806f563aabc72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Wed, 8 Feb 2023 09:41:39 +0100 Subject: [PATCH] fix(inject): make sure type name is passed to inject command --- src/Inject/NosSmooth.Injector.CLI/Commands/InjectCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Inject/NosSmooth.Injector.CLI/Commands/InjectCommand.cs b/src/Inject/NosSmooth.Injector.CLI/Commands/InjectCommand.cs index 03f6b99..c0c9818 100644 --- a/src/Inject/NosSmooth.Injector.CLI/Commands/InjectCommand.cs +++ b/src/Inject/NosSmooth.Injector.CLI/Commands/InjectCommand.cs @@ -62,7 +62,7 @@ namespace NosSmooth.Injector.CLI.Commands var dllName = Path.GetFileNameWithoutExtension(dllPath); return Task.FromResult - (_injector.Inject(processId, dllPath, $"{dllName}.DllMain, {dllName}", methodName ?? "Main")); + (_injector.Inject(processId, dllPath, typeName ?? $"{dllName}.DllMain, {dllName}", methodName ?? "Main")); } } } \ No newline at end of file -- 2.48.1