[UCRT] Fix multiple missing dereferences

This is a bug in MS UCRT code. MSVC allows to check a pointer to be > 0, GCC emits a warning.
This commit is contained in:
Timo Kreuzer 2024-10-13 19:36:53 +02:00
parent d622c4a7a0
commit 2d753d95fb
3 changed files with 3 additions and 3 deletions

View file

@ -205,7 +205,7 @@ int __cdecl __acrt_locale_initialize_monetary (
if ( (ploci->lconv_mon_refcount != nullptr) &&
(InterlockedDecrement(ploci->lconv_mon_refcount) == 0))
{
_ASSERTE(ploci->lconv_mon_refcount > 0);
_ASSERTE(*ploci->lconv_mon_refcount > 0);
}
if ( (ploci->lconv_intl_refcount != nullptr) &&
(InterlockedDecrement(ploci->lconv_intl_refcount) == 0))