BOOL cpy_cell(PWumf *l, PWumf w) { PWumf w1 = new_wumf(w->dwID, w->szUser, w->szPath, w->szComp,w->szUNC, w->dwSess, w->dwPerm, w->dwAttr); if (!w1) return FALSE; w1->mark = w->mark; return add_cell(l, w1); }
void process_file(SESSION_INFO_1 s_info, FILE_INFO_3 f_info) { PWumf w = fnd_cell(&list, f_info.fi3_id); if (!w) { w = new_wumf(f_info.fi3_id, f_info.fi3_username, f_info.fi3_pathname, s_info.sesi1_cname, NULL, 0, f_info.fi3_permissions, GetFileAttributes(f_info.fi3_pathname)); w->mark = FALSE; if (!add_cell(&list, w)) msg(TranslateT("Error memory allocation")); if (WumfOptions.PopupsEnabled) ShowWumfPopup(w); if (WumfOptions.LogToFile) LogWumf(w); } else w->mark = FALSE; }