fixed: apparently GetOutputFormats may return 0.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@610 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2129049b13
commit
ae90960e33
@ -417,9 +417,8 @@ status_t TranslatorRosterTest::GetOutputFormatsTest() {
|
||||
const translation_format *fmts;
|
||||
int32 num_fmts;
|
||||
roster->GetOutputFormats(translators[i], &fmts, &num_fmts);
|
||||
//printf("Translator supports %ld output formats\n", num_fmts);
|
||||
if(num_fmts <= 0) {
|
||||
Debug("Found translator accepting 0 or less output formats");
|
||||
if(num_fmts < 0) {
|
||||
Debug("Found translator accepting less than 0 output formats");
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user