HLLib: don't infinite-loop in WStringToString if an unexpected character is detected
This commit is contained in:
parent
c48d5c298a
commit
880077d94c
|
@ -206,6 +206,10 @@ hlUInt HLLib::WStringToString(const hlWChar *lpSource, hlChar* lpDest, hlUInt ui
|
|||
uiDestSize--;
|
||||
uiCharsWritten++;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if(uiDestSize > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue