Fix result test of example application
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 4 May 2009 18:51:55 +0000 (20:51 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 4 May 2009 18:51:55 +0000 (20:51 +0200)
examples/find_all_pp.cpp

index 98e5133..cf1675b 100644 (file)
@@ -54,7 +54,7 @@ int main(int argc, char **argv)
         << it->serial();
 
         // Open test
-        if(it->open())
+        if(it->open() == 0)
            std::cout << " (Open OK)";
         else
            std::cout << " (Open FAILED)";