From ae90960e3349cbc48a523c1bc5f4f1f5ebacc1ef Mon Sep 17 00:00:00 2001 From: matzon Date: Tue, 6 Aug 2002 14:42:20 +0000 Subject: [PATCH] fixed: apparently GetOutputFormats may return 0. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@610 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/translation/TranslatorRosterTest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tests/kits/translation/TranslatorRosterTest.cpp b/src/tests/kits/translation/TranslatorRosterTest.cpp index 916753767b..89eda0deda 100644 --- a/src/tests/kits/translation/TranslatorRosterTest.cpp +++ b/src/tests/kits/translation/TranslatorRosterTest.cpp @@ -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; }