Skip to content

Commit f501a66

Browse files
committed
Demangle IID to name string.
1 parent efa20c7 commit f501a66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

NtApiDotNet/Ndr/IdlNdrFormatterInternal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ public string IidToName(Guid iid)
722722
{
723723
if (_iids_to_name.TryGetValue(iid, out string value))
724724
{
725-
return value;
725+
return _demangle_com_name(value);
726726
}
727727

728728
if (iid == NdrNativeUtils.IID_IUnknown)

NtApiDotNet/Ndr/NdrFormatter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ internal class NdrFormatter : INdrFormatterInternal
7070
{
7171
private readonly IDictionary<Guid, string> _iids_to_name;
7272
private readonly Func<string, string> _demangle_com_name;
73-
private DefaultNdrFormatterFlags _flags;
73+
private readonly DefaultNdrFormatterFlags _flags;
7474

7575
bool INdrFormatterInternal.ShowProcedureParameterAttributes { get { return true; } }
7676

@@ -90,7 +90,7 @@ protected string IidToName(Guid iid)
9090
{
9191
if (_iids_to_name.ContainsKey(iid))
9292
{
93-
return _iids_to_name[iid];
93+
return _demangle_com_name(_iids_to_name[iid]);
9494
}
9595
return null;
9696
}

0 commit comments

Comments
 (0)