Not all versions of MinGW have ARRAYSIZE, use our custom COUNTOF macro

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6565 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2014-10-26 18:57:52 +00:00
parent 27828503e5
commit c4de0f9f59

View file

@ -234,7 +234,7 @@ void SetCompressorStats()
line_count = SendDlgItemMessage(g_sdata.hwnd, IDC_LOGWIN, EM_GETLINECOUNT, 0, 0);
for(i=0; i<line_count; i++) {
*((LPWORD)buf) = ARRAYSIZE(buf);
*((LPWORD)buf) = COUNTOF(buf);
LRESULT cchLine = SendDlgItemMessage(g_sdata.hwnd, IDC_LOGWIN, EM_GETLINE, (WPARAM)i, (LPARAM)buf);
buf[cchLine] = _T('\0');
if(found) {