Skip to content

Commit

Permalink
Continue to follow partial suggestions from mingkuang.
Browse files Browse the repository at this point in the history
  • Loading branch information
MouriNaruto committed Jun 22, 2024
1 parent 188e058 commit a5af3d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Thunks/api-ms-win-core-winrt-string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ namespace YY::Thunks
reinterpret_cast<internal::PSTRING_OPAQUE>(string);
if (!(OpaqueString->Header.Flags & WRHF_EMBEDDED_NULLS_COMPUTED))
{
OpaqueString->Header.Flags |= WRHF_EMBEDDED_NULLS_COMPUTED;
for (UINT32 i = 0; i < OpaqueString->Header.Length; ++i)
{
if (OpaqueString->Header.StringRef[i] == L'\0')
Expand All @@ -353,6 +352,7 @@ namespace YY::Thunks
break;
}
}
OpaqueString->Header.Flags |= WRHF_EMBEDDED_NULLS_COMPUTED;
}
*hasEmbedNull = OpaqueString->Header.Flags & WRHF_HAS_EMBEDDED_NULLS;
}
Expand Down

0 comments on commit a5af3d0

Please sign in to comment.