Invert condition for assembly marshaling check

This commit is contained in:
wolfcomp 2026-02-13 11:22:29 +01:00 committed by GitHub
parent 143387bad3
commit 40417e25b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,7 +74,7 @@ internal static class HookVerifier
} }
var passedType = typeof(T); var passedType = typeof(T);
var isAssemblyMarshaled = passedType.Assembly.GetCustomAttribute<DisableRuntimeMarshallingAttribute>() is not null; var isAssemblyMarshaled = passedType.Assembly.GetCustomAttribute<DisableRuntimeMarshallingAttribute>() is null;
// Directly compare delegates // Directly compare delegates
if (passedType == entry.TargetDelegateType) if (passedType == entry.TargetDelegateType)