diff options
author | George Hazan <george.hazan@gmail.com> | 2015-12-21 14:52:52 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-12-21 14:52:52 +0000 |
commit | 6e06694f2fdda33eb3237fe1a3aa7f6df94ad61c (patch) | |
tree | b63b77d66f136386786a80d6b30ce601a8ee7a2f /src/mir_core | |
parent | 3986b91d0e344e11b5953657fa1fb3e85d6da869 (diff) |
- more effective binary search of MUUIDs;
- fix to prevent a loop creation if one forgets about UNSET_UID;
git-svn-id: http://svn.miranda-ng.org/main/trunk@15926 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/utils.cpp b/src/mir_core/src/utils.cpp index a2f1ab0171..d065e8fa1b 100644 --- a/src/mir_core/src/utils.cpp +++ b/src/mir_core/src/utils.cpp @@ -317,7 +317,7 @@ MIR_CORE_DLL(bool) hex2binW(const wchar_t *pSrc, void *pData, size_t len) if (pSrc == NULL || pData == NULL || len == 0)
return false;
- size_t bufLen = wcslen(pSrc);
+ size_t bufLen = wcslen(pSrc)/2;
if (pSrc[bufLen * 2] != 0 || bufLen > len)
return false;
|