Core: svo_memeq fixed

git-svn-id: svn://ultimatepp.org/upp/trunk@6984 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-03-02 17:36:49 +00:00
parent 56cd28a5a5
commit f47d9ebbaf

View file

@ -716,7 +716,7 @@ template <class tchar>
force_inline bool svo_memeq(const tchar *a, const tchar *b, int len)
{
if(len > 11)
return memcmp(a, b, len) == 0;
return memcmp(a, b, len * sizeof(tchar)) == 0;
switch(len) {
case 11:
if(a[10] != b[10]) return false;