Kai Tietz - 2008-06-06

Logged In: YES
user_id=1598680
Originator: NO

Replace the OVERLAPPED olap = ... by:

DWORD written;
OVERLAPPED olap;
memset (&olap,0,sizeof (OVERLAPPED));
olap.Offset= (DWORD) offset;
olap.OffsetHigh = (DWORD) (offset >> 32);

This will work for mingw-w64 and for mingw

Cheers,
Kai