1.1 --- a/sourcehook/test/test1.cpp Sun Oct 07 22:45:51 2007 +0000
1.2 +++ b/sourcehook/test/test1.cpp Sun Oct 07 23:00:38 2007 +0000
1.3 @@ -419,6 +419,8 @@
1.4 Test test;
1.5 Test *pTest = &test;
1.6
1.7 + void *pOrigVfnPtrF1 = (*reinterpret_cast<void***>(pTest))[0];
1.8 +
1.9 // 1) Get a call class and call the member through it and normally
1.10 SourceHook::CallClass<Test> *cc = SH_GET_CALLCLASS(pTest);
1.11
1.12 @@ -433,6 +435,8 @@
1.13 new State_F1_Called,
1.14 NULL), "Part 1");
1.15
1.16 + CHECK_COND(SH_GET_ORIG_VFNPTR_ENTRY(pTest, &Test::F1) == pOrigVfnPtrF1, "Part S1");
1.17 +
1.18 // 2) Request a call class again
1.19 SourceHook::CallClass<Test> *cc2 = SH_GET_CALLCLASS(pTest);
1.20 ADD_STATE(State_F1_CallClassGenerated);
1.21 @@ -471,6 +475,8 @@
1.22 new State_F1_PreHandler_Called(&f1_handlers),
1.23 NULL), "Part 3");
1.24
1.25 + CHECK_COND(SH_GET_ORIG_VFNPTR_ENTRY(pTest, &Test::F1) == pOrigVfnPtrF1, "Part S3");
1.26 +
1.27 // 4) Rerequest the callclass
1.28 SH_RELEASE_CALLCLASS(cc);
1.29