From 4af0111e8fc0f61fa4af0d67d1dfa42b7c1e99d0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 29 Jul 2012 20:28:36 +0000 Subject: even simpler git-svn-id: http://svn.miranda-ng.org/main/trunk@1251 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FingerPrintModPlus/src/fingerprint.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'plugins/FingerPrintModPlus') diff --git a/plugins/FingerPrintModPlus/src/fingerprint.cpp b/plugins/FingerPrintModPlus/src/fingerprint.cpp index 7ae6cfcea4..1a357a7d68 100644 --- a/plugins/FingerPrintModPlus/src/fingerprint.cpp +++ b/plugins/FingerPrintModPlus/src/fingerprint.cpp @@ -549,11 +549,8 @@ void FASTCALL GetIconsIndexesA(LPSTR szMirVer, short *base, short *overlay,short } LPTSTR tszMirVerUp = mir_a2t(szMirVer); - size_t iMirVerUpLen = lstrlen(tszMirVerUp); - _tcsupr_s(tszMirVerUp, iMirVerUpLen); - + _tcsupr(tszMirVerUp); MatchMasks(tszMirVerUp, base, overlay, overlay2, overlay3); - mir_free(tszMirVerUp); } @@ -572,14 +569,9 @@ void FASTCALL GetIconsIndexesW(LPWSTR wszMirVer, short *base, short *overlay,sho return; } - size_t iMirVerUpLen = wcslen(wszMirVer) + 1; - LPWSTR wszMirVerUp = (LPWSTR)mir_alloc(iMirVerUpLen * sizeof(WCHAR)); - wcscpy_s(wszMirVerUp, iMirVerUpLen, wszMirVer); - _wcsupr_s(wszMirVerUp, iMirVerUpLen); - + LPWSTR wszMirVerUp = NEWWSTR_ALLOCA(wszMirVer); + _wcsupr(wszMirVerUp); MatchMasks(wszMirVerUp, base, overlay, overlay2, overlay3); - - mir_free(wszMirVerUp); } /* -- cgit v1.2.3