Temporary fix to trying to put a pointer in a DWORD

Vincent Béron vberon at mecano.gme.usherb.ca
Sat Oct 16 22:59:41 CDT 2004


Le sam 16/10/2004 à 23:54, Dmitry Timoshkov a écrit :
> "Vincent Béron" <vberon at mecano.gme.usherb.ca> wrote:
> 
> > We try to put a pointer in a DWORD in a static initialization of
> > CRITICAL_SECTION_DEBUGs. Of course it doesn't work on Win64. We'll have
> > to find a better solution though.
> 
> Another way to fix it is to use full 'DWORD Spare[2]' to store a pointer
> on Win64 and leave it as it is now for Win32.

I tried, but since it's a static initialization you don't have access to
& (addessof), so you can't put the high part in one and the low part in
the other. Maybe with a union, but then we'd extend a MS type.

Vincent





More information about the wine-devel mailing list