Commit fc09bc45 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

ws2_32: Remove duplicated code.

parent 743929e4
......@@ -269,10 +269,10 @@ static HANDLE run_query( HWND hWnd, UINT uMsg, LPTHREAD_START_ROUTINE func,
{
static LONG next_handle = 0xdead;
HANDLE thread;
ULONG handle = LOWORD( InterlockedIncrement( &next_handle ));
/* avoid handle 0 */
while (!handle) handle = LOWORD( InterlockedIncrement( &next_handle ));
ULONG handle;
do
handle = LOWORD( InterlockedIncrement( &next_handle ));
while (!handle); /* avoid handle 0 */
query->hWnd = hWnd;
query->uMsg = uMsg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment