RE: wrapping DX

new topic     » goto parent     » topic index » view thread      » older message » newer message

> -----Original Message-----
> From: stabmaster_ at HOTMAIL.COM [mailto:stabmaster_ at HOTMAIL.COM]
> 
> >004011B8 8B 0D D0 79 41 00    mov         ecx,dword ptr 
> [g_pVB (004179d0)]
> >004011BE 8B 11                mov         edx,dword ptr [ecx]
> >004011C0 A1 D0 79 41 00       mov         eax,[g_pVB (004179d0)]
> >004011C5 50                   push        eax
> >004011C6 FF 52 2C             call        dword ptr [edx+2Ch]
> >
> 
> I assume you have checked that comfunc equals peek4u(g_pVB)+#2C  (or 
> something like that).
> The last PUSH is interesting. I don't really understand where 
> this parameter 
> is aimed, but your code (below) doesn't seem to perform the 
> extra push. 
> Perhaps this param has something to do with Lock() being a virtual 
> function..?  C++ isn't really my strong side so I wouldn't know.

The last push is the 'this' pointer.  I've already added that to the arg
list, so it's pushed with the other args.  It's just so bizarre, because it
works fine with everything but this one interface...

Thanks,
Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu