buffer[0] = (cheatsList[i].status & 2) ? 'E' : 'D';
buffer[0] = (cheatsList[i].enabled) ? 'E' : 'D';
void GBACheatListDlg::refresh(HWND lv){  duringRefresh = true;  ListView_DeleteAllItems(lv);    char buffer[100];    for(int i = 0; i < cheatsNumber; i++) {    LVITEM item;    item.mask = LVIF_TEXT | LVIF_PARAM | LVIF_STATE;    item.iItem = i;    item.iSubItem = 0;    item.lParam = i;    item.state = 0;    item.stateMask = 0;    item.pszText = cheatsList[i].codestring;    ListView_InsertItem(lv, &item);    ListView_SetCheckState(lv, i, (cheatsList[i].enabled) ? TRUE : FALSE);    ListView_SetItemText(lv, i, 1, cheatsList[i].desc);    buffer[0] = (cheatsList[i].status & 2) ? 'E' : 'D';        buffer[1] = 0;    ListView_SetItemText(lv, i, 2, buffer);  }  duringRefresh = false;}