Marcus Meissner wrote:

    if (mailslot->read_timeout != MAILSLOT_WAIT_FOREVER)
-        timeout = &mailslot->read_timeout;
+        timeout = (int*) &mailslot->read_timeout;


It would be better to change read_timeout to "int" instead I guess.

I'm not really sure, that why I've been avoiding changing this...

CreateMailslot takes timeout as a DWORD, and timeouts should not be negative. Maybe fd_queue_async_timeout should take an unsigned int *?

Mike


Reply via email to