Skip to content

Commit afbcf0f

Browse files
committed
Only look in the filename of the module for "lua"
1 parent ef1af19 commit afbcf0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LuaDkmDebuggerComponent/LocalComponent.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1966,7 +1966,8 @@ void IDkmModuleInstanceLoadNotification.OnModuleInstanceLoad(DkmModuleInstance m
19661966

19671967
var moduleName = nativeModuleInstance.FullName;
19681968

1969-
if (moduleName != null && (moduleName.EndsWith(".exe") || moduleName.IndexOf("lua", StringComparison.InvariantCultureIgnoreCase) != -1) && processData.moduleWithLoadedLua == null)
1969+
if (moduleName != null && (moduleName.EndsWith(".exe") || Path.GetFileName(moduleName).IndexOf("lua", StringComparison.InvariantCultureIgnoreCase) != -1) &&
1970+
processData.moduleWithLoadedLua == null)
19701971
{
19711972
// Request the RemoteComponent to create the runtime and a module
19721973
DkmCustomMessage.Create(process.Connection, process, MessageToRemote.guid, MessageToRemote.createRuntime, null, null).SendLower();

0 commit comments

Comments
 (0)