mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
netapi32: Fix wrap-around bug in tick count comparison.
This commit is contained in:
parent
e089295f75
commit
2c70e08cf8
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ static UCHAR NetBTWaitForNameResponse(const NetBTAdapter *adapter, SOCKET fd,
|
|||
if (fd == INVALID_SOCKET) return NRC_BADDR;
|
||||
if (!answerCallback) return NRC_BADDR;
|
||||
|
||||
while (!found && ret == NRC_GOODRET && (now = GetTickCount()) < waitUntil)
|
||||
while (!found && ret == NRC_GOODRET && (int)((now = GetTickCount()) - waitUntil) < 0)
|
||||
{
|
||||
DWORD msToWait = waitUntil - now;
|
||||
struct fd_set fds;
|
||||
|
|
Loading…
Reference in a new issue