work around NFD crash

This commit is contained in:
tildearrow 2023-04-10 13:12:01 -05:00
parent 7e6a96deb5
commit ad2af793ba
1 changed files with 3 additions and 1 deletions

View File

@ -204,7 +204,9 @@ static void CopyNFDCharToWChar( const nfdchar_t *inStr, wchar_t **outStr )
#ifdef _DEBUG
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
_NFD_UNUSED(ret);
#endif