diff --git a/HLLib/Utility.cpp b/HLLib/Utility.cpp index ad1d85e..0492375 100644 --- a/HLLib/Utility.cpp +++ b/HLLib/Utility.cpp @@ -206,6 +206,10 @@ hlUInt HLLib::WStringToString(const hlWChar *lpSource, hlChar* lpDest, hlUInt ui uiDestSize--; uiCharsWritten++; } + else + { + return 0; + } } if(uiDestSize > 0) {