seems MinGW and VC don't agree on the content of an OVERLAPPED struct.

svn path=/trunk/externals/iem/comport/; revision=13143
This commit is contained in:
Martin Peach 2010-02-04 16:25:38 +00:00
parent 217e4a430c
commit ad24c79d3e

View file

@ -1037,7 +1037,7 @@ static void comport_tick(t_comport *x)
osReader.InternalHigh = 0;
osReader.Offset = 0;
osReader.OffsetHigh = 0;
osReader.Pointer = 0;
/*osReader.Pointer = 0; seems MinGW doesn't knoow about this one */
osReader.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
if(ReadFile(x->comhandle, x->x_inbuf, x->x_inbuf_len, &dwRead, &osReader))
{
@ -1102,7 +1102,7 @@ static void comport_tick(t_comport *x)
osWrite.InternalHigh = 0;
osWrite.Offset = 0;
osWrite.OffsetHigh = 0;
osWrite.Pointer = 0;
/*osWrite.Pointer = 0; seems MinGW doesn't know about this one */
osWrite.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
if (osWrite.hEvent == NULL)
{