Added a null check on the vtable symbol
authorMatt Woodrow <pred@alliedmods.net>
Tue Jul 01 23:42:19 2008 +0000 (2008-07-01)
changeset 2143ad12a83e4acd
parent 2142 d9d876e97a66
child 2144 ed5a612729e1
Added a null check on the vtable symbol
tools/Vtable scanner/main.cpp
     1.1 --- a/tools/Vtable scanner/main.cpp	Tue Jul 01 09:48:17 2008 +0000
     1.2 +++ b/tools/Vtable scanner/main.cpp	Tue Jul 01 23:42:19 2008 +0000
     1.3 @@ -38,6 +38,11 @@
     1.4  
     1.5  	pVtable = (void **)dlsym(handle, argv[2]);
     1.6  
     1.7 +	if (pVtable == NULL)
     1.8 +	{
     1.9 +		printf("Invalid vtable symbol \"%s\"\n", argv[2]);
    1.10 +	}
    1.11 +
    1.12  	if (argc >= 5)
    1.13  	{
    1.14  		params = argv[4];