ws2_32/tests: Wait for thread termination before cleaning up winsock.
This commit is contained in:
parent
504872741c
commit
69cc90957c
|
@ -4354,7 +4354,11 @@ end:
|
||||||
if (dst != INVALID_SOCKET)
|
if (dst != INVALID_SOCKET)
|
||||||
closesocket(dst);
|
closesocket(dst);
|
||||||
if (hThread != NULL)
|
if (hThread != NULL)
|
||||||
|
{
|
||||||
|
dwRet = WaitForSingleObject(hThread, 500);
|
||||||
|
ok(dwRet == WAIT_OBJECT_0, "failed to wait for thread termination: %d\n", GetLastError());
|
||||||
CloseHandle(hThread);
|
CloseHandle(hThread);
|
||||||
|
}
|
||||||
if (ov.hEvent)
|
if (ov.hEvent)
|
||||||
CloseHandle(ov.hEvent);
|
CloseHandle(ov.hEvent);
|
||||||
HeapFree(GetProcessHeap(), 0, buffer);
|
HeapFree(GetProcessHeap(), 0, buffer);
|
||||||
|
|
Loading…
Reference in New Issue