Skip to content

Commit

Permalink
Improve natvis compatibility (#2838)
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar authored Feb 12, 2024
1 parent 71dcb5f commit 5e35bd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/libs/core/windows.natvis
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
</Type>

<Type Name="windows_core::strings::hstring::HSTRING">
<Intrinsic Name="header" Expression="*((windows_core::strings::hstring::Header**)this)" ReturnType="windows_core::strings::hstring::Header *" />
<Intrinsic Name="is_empty" Expression="header() == nullptr" />
<Intrinsic Name="header" Expression="(windows_core::strings::hstring::Header *)__0.tag" />
<Intrinsic Name="is_empty" Expression="__0.tag == 0" />
<DisplayString Condition="is_empty()">""</DisplayString>
<DisplayString>{((char16_t*)header()->data),[header()->len]su}</DisplayString>
<DisplayString>{header()->data,[header()->len]su}</DisplayString>

<Expand>
<Item Name="[len]">is_empty() ? (unsigned int)0 : header()->len</Item>
Expand Down

0 comments on commit 5e35bd7

Please sign in to comment.