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:
parent
217e4a430c
commit
ad24c79d3e
1 changed files with 2 additions and 2 deletions
|
|
@ -1037,7 +1037,7 @@ static void comport_tick(t_comport *x)
|
||||||
osReader.InternalHigh = 0;
|
osReader.InternalHigh = 0;
|
||||||
osReader.Offset = 0;
|
osReader.Offset = 0;
|
||||||
osReader.OffsetHigh = 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);
|
osReader.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
|
||||||
if(ReadFile(x->comhandle, x->x_inbuf, x->x_inbuf_len, &dwRead, &osReader))
|
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.InternalHigh = 0;
|
||||||
osWrite.Offset = 0;
|
osWrite.Offset = 0;
|
||||||
osWrite.OffsetHigh = 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);
|
osWrite.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
|
||||||
if (osWrite.hEvent == NULL)
|
if (osWrite.hEvent == NULL)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue