wininet: Don't increase index in HttpQueryInfo if requested level is HTTP_QUERY_STATUS_CODE.
Some apps depend on this quirk because they don't reset the index
before subsequent calls to HttpQueryInfo.
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 56ffe63..9cb8985 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -2334,8 +2334,7 @@
return bSuccess;
}
- if (lpdwIndex)
- (*lpdwIndex)++;
+ if (lpdwIndex && level != HTTP_QUERY_STATUS_CODE) (*lpdwIndex)++;
/* coalesce value to requested type */
if (dwInfoLevel & HTTP_QUERY_FLAG_NUMBER && lpBuffer)