ws2_32: Remove duplicated code.

This commit is contained in:
Bruno Jesus 2011-11-26 20:43:03 -02:00 committed by Alexandre Julliard
parent 743929e4f4
commit fc09bc4533
1 changed files with 4 additions and 4 deletions

View File

@ -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;