diff options
Diffstat (limited to 'plugins/FingerPrintModPlus')
-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);
}
/*
|