Fixed an encoding bug on Windows

This commit is contained in:
Olivier Teulière 2010-05-19 19:28:26 +00:00
parent d3df401664
commit 7a486ec697

View file

@ -354,7 +354,7 @@ unsigned int readFromUTF8(wchar_t *oString, unsigned int iWideSize,
const string &iContext) const string &iContext)
{ {
#ifdef WIN32 #ifdef WIN32
if (iBuffer == NULL || *iBuffer == '\0') if (iBufSize == 0 || iBuffer == NULL || *iBuffer == '\0')
{ {
return 0; return 0;
} }