work around NFD crash

This commit is contained in:
tildearrow 2023-04-10 13:12:01 -05:00
parent 7e6a96deb5
commit ad2af793ba

View file

@ -204,7 +204,9 @@ static void CopyNFDCharToWChar( const nfdchar_t *inStr, wchar_t **outStr )
#ifdef _DEBUG #ifdef _DEBUG
int inStrCharacterCount = static_cast<int>(NFDi_UTF8_Strlen(inStr)); int inStrCharacterCount = static_cast<int>(NFDi_UTF8_Strlen(inStr));
assert( ret == inStrCharacterCount ); if (ret!=inStrCharacterCount) {
logW("length does not match! %d != %d",ret,inStrCharacterCount);
}
#else #else
_NFD_UNUSED(ret); _NFD_UNUSED(ret);
#endif #endif