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, ...@@ -269,10 +269,10 @@ static HANDLE run_query( HWND hWnd, UINT uMsg, LPTHREAD_START_ROUTINE func,
{ {
static LONG next_handle = 0xdead; static LONG next_handle = 0xdead;
HANDLE thread; HANDLE thread;
ULONG handle = LOWORD( InterlockedIncrement( &next_handle )); ULONG handle;
do
/* avoid handle 0 */ handle = LOWORD( InterlockedIncrement( &next_handle ));
while (!handle) handle = LOWORD( InterlockedIncrement( &next_handle )); while (!handle); /* avoid handle 0 */
query->hWnd = hWnd; query->hWnd = hWnd;
query->uMsg = uMsg; 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