| return; | return; | ||||
| do { | do { | ||||
| if (n_voices_list >= (N_VOICES_LIST-2)) | |||||
| if (n_voices_list >= (N_VOICES_LIST-2)) { | |||||
| fprintf(stderr, "Warning: maximum number %d of (N_VOICES_LIST = %d - 1) reached\n", n_voices_list + 1, N_VOICES_LIST); | |||||
| break; // voices list is full | break; // voices list is full | ||||
| } | |||||
| if (FindFileData.cFileName[0] != '.') { | if (FindFileData.cFileName[0] != '.') { | ||||
| sprintf(fname, "%s%c%s", path, PATHSEP, FindFileData.cFileName); | sprintf(fname, "%s%c%s", path, PATHSEP, FindFileData.cFileName); | ||||
| return; | return; | ||||
| while ((ent = readdir(dir)) != NULL) { | while ((ent = readdir(dir)) != NULL) { | ||||
| if (n_voices_list >= (N_VOICES_LIST-2)) | |||||
| if (n_voices_list >= (N_VOICES_LIST-2)) { | |||||
| fprintf(stderr, "Warning: maximum number %d of (N_VOICES_LIST = %d - 1) reached\n", n_voices_list + 1, N_VOICES_LIST); | |||||
| break; // voices list is full | break; // voices list is full | ||||
| } | |||||
| if (ent->d_name[0] == '.') | if (ent->d_name[0] == '.') | ||||
| continue; | continue; |