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 23, 2024
1 parent c1685b2 commit 7e184f7
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/Shared/hstring_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,30 +51,15 @@ namespace YY::Thunks::internal
} HSTRING_HEADER_INTERNAL, *PHSTRING_HEADER_INTERNAL;
static_assert(sizeof(HSTRING_HEADER) == sizeof(HSTRING_HEADER_INTERNAL));

#ifdef _MSC_VER
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif
#pragma warning(disable:4200) // zero length array
#endif

/*
* @brief The internal structure of heap allocated Windows Runtime String.
*/
typedef struct _STRING_OPAQUE
{
HSTRING_HEADER_INTERNAL Header;
volatile INT RefCount;
WCHAR String[0];
WCHAR String[ANYSIZE_ARRAY];
} STRING_OPAQUE, *PSTRING_OPAQUE;

#ifdef _MSC_VER
#if (_MSC_VER >= 1200)
#pragma warning(pop)
#else
#pragma warning(default:4200) // zero length array
#endif
#endif
}

#endif // !YY_THUNKS_HSTRING_PRIVATE

0 comments on commit 7e184f7

Please sign in to comment.