Let vtablecheck take class names instead of just vtable symbols (also fix line endings)

This commit is contained in:
Fyren 2009-03-21 18:17:43 -07:00
parent 4364ba46e2
commit ccc4386285

View File

@ -39,6 +39,13 @@ int main(int argc, char **argv)
pVtable = (void **)dlsym(handle, argv[2]);
if (pVtable == NULL)
{
char startSym[128];
snprintf(startSym, sizeof(startSym), "_ZTV%d%s", strlen(argv[2]), argv[2]);
pVtable = (void **)dlsym(handle, startSym);
}
if (pVtable == NULL)
{
fprintf(stderr, "Invalid vtable symbol \"%s\"\n", argv[2]);