jedisct1/libsodium — pull request #140 by Dextrey (2014-04-27 15:14:01+00:00)
Title: Fixed sodium_mlock/munlock on Windows

Fixed faulty comparison for VirtualLock/VirtualUnlock return value

Old code returns -1 on VirtualLock success:

return -(VirtualLock(addr, len) != 0);

MSDN on VirtualLock:

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.