Skip to content

Commit 7513796

Browse files
mansellancomintern
andauthored
Check VBEKind instead of namespace.
Co-Authored-By: comintern <comintern@users.noreply.github.com>
1 parent adae41a commit 7513796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.VBEEditor/VBERuntime/VBEDllVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static DllVersion GetCurrentVersion(IVBE vbe)
1919
switch (int.Parse(vbe.Version.Split('.')[0]))
2020
{
2121
case 6:
22-
return vbe.GetType().Namespace?.EndsWith("VB6") ?? false ? DllVersion.Vb98 : DllVersion.Vbe6;
22+
return vbe.Kind == VBEKind.Standalone ? DllVersion.Vb98 : DllVersion.Vbe6;
2323
case 7:
2424
return DllVersion.Vbe7;
2525
default:

0 commit comments

Comments
 (0)