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:
parent
27828503e5
commit
c4de0f9f59
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue