wininet: Error out if hInternet is a bad handle.
This commit is contained in:
parent
8e96015ebb
commit
545309c97f
|
@ -1989,6 +1989,11 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
|
|||
TRACE("(%p, 0x%08lx, %p, %p)\n", hInternet, dwOption, lpBuffer, lpdwBufferLength);
|
||||
|
||||
lpwhh = (LPWININETHANDLEHEADER) WININET_GetObject( hInternet );
|
||||
if (!lpwhh)
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
switch (dwOption)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue