Commit c2053e1d authored by Benjamin Cutler's avatar Benjamin Cutler Committed by Alexandre Julliard

Check for an invalid hInternet handle in INET_QueryOptionHelper for

INTERNET_OPTION_PROXY before attempting to use it.
parent 47229416
......@@ -1876,6 +1876,13 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
{
LPWININETAPPINFOW lpwai = (LPWININETAPPINFOW)lpwhh;
if (!lpwhh)
{
WARN("Invalid hInternet handle\n");
SetLastError(ERROR_INVALID_HANDLE);
return FALSE;
}
if (bIsUnicode)
{
INTERNET_PROXY_INFOW *pPI = (INTERNET_PROXY_INFOW *)lpBuffer;
......
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