work around NFD crash
This commit is contained in:
parent
7e6a96deb5
commit
ad2af793ba
4
extern/nfd-modified/src/nfd_win.cpp
vendored
4
extern/nfd-modified/src/nfd_win.cpp
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue