This fixes an observed crash in sexyz for Windows. The crash was in RingBufWrite() where 'remain' was set to -1 (4.2B) apparently because pHead and/or pTail changed (to pTail=pHead) during the invocation of the RINGBUF_FILL_LEVEL() macro, because it wasn't thread-safe.
Amazing this problem never came up before.
Who's Online
Recent Visitors
David Murray
Fri May 3 20:41:06 2024
from
Kennedale, Tx
via
Raw
Guest
Sat May 4 03:42:22 2024
from
City, State
via
Telnet
Guest
Sat May 4 02:17:51 2024
from
Ssss
via
Telnet
Guest
Sat May 4 01:33:39 2024
from
United Klingon
via
Telnet