From 52d2a1797d1376469424ee664b2ed632c929eb58 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Tue, 1 Jul 2008 23:44:33 +0000 Subject: [PATCH] A null check that lets the program keep running is somewhat pointless. --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402328 --- tools/Vtable scanner/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/Vtable scanner/main.cpp b/tools/Vtable scanner/main.cpp index e1d48a13..35b18470 100644 --- a/tools/Vtable scanner/main.cpp +++ b/tools/Vtable scanner/main.cpp @@ -32,7 +32,7 @@ int main(int argc, char **argv) if (handle == NULL) { - printf("Failed to open server image, error [%s]\n", dlerror()); + fprintf(stderr, "Failed to open server image, error [%s]\n", dlerror()); return -1; } @@ -40,7 +40,8 @@ int main(int argc, char **argv) if (pVtable == NULL) { - printf("Invalid vtable symbol \"%s\"\n", argv[2]); + fprintf(stderr, "Invalid vtable symbol \"%s\"\n", argv[2]); + return -1; } if (argc >= 5)