diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-29 20:28:36 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-29 20:28:36 +0000 |
commit | 4af0111e8fc0f61fa4af0d67d1dfa42b7c1e99d0 (patch) | |
tree | cf104cbf8caa28a6c99cfd9d29e6808563253f85 | |
parent | 0ee9bc4d18c4d4f063e1e9e62f695fad79624b65 (diff) |
even simpler
git-svn-id: http://svn.miranda-ng.org/main/trunk@1251 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/FingerPrintModPlus/src/fingerprint.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
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);
}
/*
|