2009/1/21 Rob Shearman robertshearman@gmail.com:
You're also relying on the IDirect3DDevice7 vtable field being the first field on the impl struct, so you should add a big comment to the impl struct warning that bad things will happen if the IDirect3DDevice7 vtable field isn't the first one.
Sure, but I'd say it's pretty hard to find code in Wine that doesn't rely on at least the "main" vtable being the first field in the struct. Probably even outside Wine.