From f47d9ebbaf9382dbc033ad010e7332c489a7c10c Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 2 Mar 2014 17:36:49 +0000 Subject: [PATCH] Core: svo_memeq fixed git-svn-id: svn://ultimatepp.org/upp/trunk@6984 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Core/Defs.h b/uppsrc/Core/Defs.h index 6119f9940..3eab534ef 100644 --- a/uppsrc/Core/Defs.h +++ b/uppsrc/Core/Defs.h @@ -716,7 +716,7 @@ template 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;