Fix use of wrong MBCS version of string functions. (When playing with TCHAR pointers, most of the time you deal with a number of BYTE/WORD, not a number of multi-byte characters)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6051 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
wizou 2010-04-13 16:14:16 +00:00
parent 57d296e159
commit d7ffe58b2e
9 changed files with 90 additions and 90 deletions

View file

@ -375,7 +375,7 @@ SIZE CDialogTemplate::GetStringSize(WORD id, TCHAR *str) {
SelectObject(memDC, font);
SIZE size;
GetTextExtentPoint32(memDC, str, _tcsclen(str), &size);
GetTextExtentPoint32(memDC, str, _tcslen(str), &size);
DestroyWindow(hDlg);
DeleteObject(font);