2009/9/22 Vitaliy Margolen wine-devel@kievinfo.com:
It does dereference the pointer. Here is your simple test. Compile it and run it. See what happens.
#include <stdio.h>
typedef struct _s_test { void *pointer; } s_test;
int main() { s_test *s = NULL; long diff = (const char*)s->pointer - (const char*)s; printf("diff=%ld\n", diff);
return 0; }
Vitaliy.
That's not really what the code does. Try changing "void *pointer" to "char pointer[32]".