[PATCH 1/3] winhttp: Factor out query_data_ready() function.