Hans Leidekker (@hans) commented about dlls/winhttp/tests/notification.c:
if (err == ERROR_SUCCESS) context->have_sync_callback = TRUE; InterlockedDecrement( &context->recursion_count ); break;
case WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE:
case WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED:
if (context->headers_available)
break;
if (context->headers_available)
ok( GetCurrentThreadId() == context->main_thread_id,
"expected callback to be called from the same thread, got %lx.\n", GetCurrentThreadId() );
This is probably not what you meant...