• src/xpdev/rwlockwrap.c

    From Deucе@VERT to Git commit to main/sbbs/master on Wed Apr 15 11:48:26 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/819c4e20927f1b70020ad5d4
    Modified Files:
    src/xpdev/rwlockwrap.c
    Log Message:
    Fix unlikely Win32 rwlock issue.

    If WaitForSingleObject() fails, the loop waiting for readers to
    zero would continue without wlk held, meaning it would be possible
    for either wlk to be left without entering, or two writers to hold
    the lock at the same time, depending on the value of lock->readers
    at the time of the failure.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net