Add default implementation for max_conn_pre_*_server flag.
Add stubs for the above flags in InternetSetOption.
This commit is contained in:
parent
30d6d5dc92
commit
ab80e557d7
|
@ -2041,6 +2041,34 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
|
|||
}
|
||||
break;
|
||||
}
|
||||
case INTERNET_OPTION_MAX_CONNS_PER_SERVER:
|
||||
{
|
||||
ULONG conn = 2;
|
||||
TRACE("INTERNET_OPTION_MAX_CONNS_PER_SERVER: %ld\n", conn);
|
||||
if (*lpdwBufferLength < sizeof(ULONG))
|
||||
INTERNET_SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||
else
|
||||
{
|
||||
memcpy(lpBuffer, &conn, sizeof(ULONG));
|
||||
bSuccess = TRUE;
|
||||
}
|
||||
*lpdwBufferLength = sizeof(ULONG);
|
||||
break;
|
||||
}
|
||||
case INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER:
|
||||
{
|
||||
ULONG conn = 4;
|
||||
TRACE("INTERNET_OPTION_MAX_CONNS_1_0_SERVER: %ld\n", conn);
|
||||
if (*lpdwBufferLength < sizeof(ULONG))
|
||||
INTERNET_SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||
else
|
||||
{
|
||||
memcpy(lpBuffer, &conn, sizeof(ULONG));
|
||||
bSuccess = TRUE;
|
||||
}
|
||||
*lpdwBufferLength = sizeof(ULONG);
|
||||
break;
|
||||
}
|
||||
case INTERNET_OPTION_SECURITY_FLAGS:
|
||||
FIXME("INTERNET_OPTION_SECURITY_FLAGS: Stub\n");
|
||||
break;
|
||||
|
@ -2148,6 +2176,18 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
|
|||
FIXME("Option INTERNET_OPTION_DATA_RECEIVE_TIMEOUT (%ld): STUB\n",receivetimeout);
|
||||
}
|
||||
break;
|
||||
case INTERNET_OPTION_MAX_CONNS_PER_SERVER:
|
||||
{
|
||||
unsigned long conns=*(unsigned long*)lpBuffer;
|
||||
FIXME("Option INTERNET_OPTION_MAX_CONNS_PER_SERVER (%ld): STUB\n",conns);
|
||||
}
|
||||
break;
|
||||
case INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER:
|
||||
{
|
||||
unsigned long conns=*(unsigned long*)lpBuffer;
|
||||
FIXME("Option INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER (%ld): STUB\n",conns);
|
||||
}
|
||||
break;
|
||||
case INTERNET_OPTION_RESET_URLCACHE_SESSION:
|
||||
FIXME("Option INTERNET_OPTION_RESET_URLCACHE_SESSION: STUB\n");
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue