mirror of
https://github.com/reactos/wine.git
synced 2025-01-31 17:23:53 +00:00
wininet: global function/data cleanup
Make some functions and a structure static since they are only used in one file.
This commit is contained in:
parent
30121124b9
commit
067f09604a
@ -119,30 +119,30 @@ static const WCHAR szNoAccount[] = {'n','o','a','c','c','o','u','n','t','\0'};
|
||||
static void FTP_CloseFileTransferHandle(LPWININETHANDLEHEADER hdr);
|
||||
static void FTP_CloseSessionHandle(LPWININETHANDLEHEADER hdr);
|
||||
static void FTP_CloseFindNextHandle(LPWININETHANDLEHEADER hdr);
|
||||
BOOL FTP_SendCommand(INT nSocket, FTP_COMMAND ftpCmd, LPCWSTR lpszParam,
|
||||
static BOOL FTP_SendCommand(INT nSocket, FTP_COMMAND ftpCmd, LPCWSTR lpszParam,
|
||||
INTERNET_STATUS_CALLBACK lpfnStatusCB, LPWININETHANDLEHEADER hdr, DWORD dwContext);
|
||||
BOOL FTP_SendStore(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile, DWORD dwType);
|
||||
BOOL FTP_GetDataSocket(LPWININETFTPSESSIONW lpwfs, LPINT nDataSocket);
|
||||
BOOL FTP_SendData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, HANDLE hFile);
|
||||
INT FTP_ReceiveResponse(LPWININETFTPSESSIONW lpwfs, DWORD dwContext);
|
||||
DWORD FTP_SendRetrieve(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile, DWORD dwType);
|
||||
BOOL FTP_RetrieveFileData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, DWORD nBytes, HANDLE hFile);
|
||||
BOOL FTP_InitListenSocket(LPWININETFTPSESSIONW lpwfs);
|
||||
BOOL FTP_ConnectToHost(LPWININETFTPSESSIONW lpwfs);
|
||||
BOOL FTP_SendPassword(LPWININETFTPSESSIONW lpwfs);
|
||||
BOOL FTP_SendAccount(LPWININETFTPSESSIONW lpwfs);
|
||||
BOOL FTP_SendType(LPWININETFTPSESSIONW lpwfs, DWORD dwType);
|
||||
BOOL FTP_GetFileSize(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile, DWORD *dwSize);
|
||||
BOOL FTP_SendPort(LPWININETFTPSESSIONW lpwfs);
|
||||
BOOL FTP_DoPassive(LPWININETFTPSESSIONW lpwfs);
|
||||
BOOL FTP_SendPortOrPasv(LPWININETFTPSESSIONW lpwfs);
|
||||
BOOL FTP_ParsePermission(LPCSTR lpszPermission, LPFILEPROPERTIESW lpfp);
|
||||
BOOL FTP_ParseNextFile(INT nSocket, LPCWSTR lpszSearchFile, LPFILEPROPERTIESW fileprop);
|
||||
BOOL FTP_ParseDirectory(LPWININETFTPSESSIONW lpwfs, INT nSocket, LPCWSTR lpszSearchFile,
|
||||
static BOOL FTP_SendStore(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile, DWORD dwType);
|
||||
static BOOL FTP_GetDataSocket(LPWININETFTPSESSIONW lpwfs, LPINT nDataSocket);
|
||||
static BOOL FTP_SendData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, HANDLE hFile);
|
||||
static INT FTP_ReceiveResponse(LPWININETFTPSESSIONW lpwfs, DWORD dwContext);
|
||||
static DWORD FTP_SendRetrieve(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile, DWORD dwType);
|
||||
static BOOL FTP_RetrieveFileData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, DWORD nBytes, HANDLE hFile);
|
||||
static BOOL FTP_InitListenSocket(LPWININETFTPSESSIONW lpwfs);
|
||||
static BOOL FTP_ConnectToHost(LPWININETFTPSESSIONW lpwfs);
|
||||
static BOOL FTP_SendPassword(LPWININETFTPSESSIONW lpwfs);
|
||||
static BOOL FTP_SendAccount(LPWININETFTPSESSIONW lpwfs);
|
||||
static BOOL FTP_SendType(LPWININETFTPSESSIONW lpwfs, DWORD dwType);
|
||||
static BOOL FTP_GetFileSize(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile, DWORD *dwSize);
|
||||
static BOOL FTP_SendPort(LPWININETFTPSESSIONW lpwfs);
|
||||
static BOOL FTP_DoPassive(LPWININETFTPSESSIONW lpwfs);
|
||||
static BOOL FTP_SendPortOrPasv(LPWININETFTPSESSIONW lpwfs);
|
||||
static BOOL FTP_ParsePermission(LPCSTR lpszPermission, LPFILEPROPERTIESW lpfp);
|
||||
static BOOL FTP_ParseNextFile(INT nSocket, LPCWSTR lpszSearchFile, LPFILEPROPERTIESW fileprop);
|
||||
static BOOL FTP_ParseDirectory(LPWININETFTPSESSIONW lpwfs, INT nSocket, LPCWSTR lpszSearchFile,
|
||||
LPFILEPROPERTIESW *lpafp, LPDWORD dwfp);
|
||||
HINTERNET FTP_ReceiveFileList(LPWININETFTPSESSIONW lpwfs, INT nSocket, LPCWSTR lpszSearchFile,
|
||||
static HINTERNET FTP_ReceiveFileList(LPWININETFTPSESSIONW lpwfs, INT nSocket, LPCWSTR lpszSearchFile,
|
||||
LPWIN32_FIND_DATAW lpFindFileData, DWORD dwContext);
|
||||
DWORD FTP_SetResponseError(DWORD dwResponse);
|
||||
static DWORD FTP_SetResponseError(DWORD dwResponse);
|
||||
|
||||
/***********************************************************************
|
||||
* FtpPutFileA (WININET.@)
|
||||
@ -1809,7 +1809,7 @@ lerror:
|
||||
* NULL on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_ConnectToHost(LPWININETFTPSESSIONW lpwfs)
|
||||
static BOOL FTP_ConnectToHost(LPWININETFTPSESSIONW lpwfs)
|
||||
{
|
||||
INT nResCode;
|
||||
BOOL bSuccess = FALSE;
|
||||
@ -1917,7 +1917,7 @@ static BOOL FTP_SendCommandA(INT nSocket, FTP_COMMAND ftpCmd, LPCSTR lpszParam,
|
||||
* NULL on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_SendCommand(INT nSocket, FTP_COMMAND ftpCmd, LPCWSTR lpszParam,
|
||||
static BOOL FTP_SendCommand(INT nSocket, FTP_COMMAND ftpCmd, LPCWSTR lpszParam,
|
||||
INTERNET_STATUS_CALLBACK lpfnStatusCB, LPWININETHANDLEHEADER hdr, DWORD dwContext)
|
||||
{
|
||||
BOOL ret;
|
||||
@ -2002,7 +2002,7 @@ lerror:
|
||||
* NULL on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_SendPassword(LPWININETFTPSESSIONW lpwfs)
|
||||
static BOOL FTP_SendPassword(LPWININETFTPSESSIONW lpwfs)
|
||||
{
|
||||
INT nResCode;
|
||||
BOOL bSuccess = FALSE;
|
||||
@ -2042,7 +2042,7 @@ lend:
|
||||
* FALSE on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_SendAccount(LPWININETFTPSESSIONW lpwfs)
|
||||
static BOOL FTP_SendAccount(LPWININETFTPSESSIONW lpwfs)
|
||||
{
|
||||
INT nResCode;
|
||||
BOOL bSuccess = FALSE;
|
||||
@ -2072,7 +2072,7 @@ lend:
|
||||
* FALSE on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_SendStore(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile, DWORD dwType)
|
||||
static BOOL FTP_SendStore(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile, DWORD dwType)
|
||||
{
|
||||
INT nResCode;
|
||||
BOOL bSuccess = FALSE;
|
||||
@ -2119,7 +2119,7 @@ lend:
|
||||
* FALSE on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_InitListenSocket(LPWININETFTPSESSIONW lpwfs)
|
||||
static BOOL FTP_InitListenSocket(LPWININETFTPSESSIONW lpwfs)
|
||||
{
|
||||
BOOL bSuccess = FALSE;
|
||||
size_t namelen = sizeof(struct sockaddr_in);
|
||||
@ -2178,7 +2178,7 @@ lend:
|
||||
* (i.e. it sends it always),
|
||||
* so we probably don't want to do that either.
|
||||
*/
|
||||
BOOL FTP_SendType(LPWININETFTPSESSIONW lpwfs, DWORD dwType)
|
||||
static BOOL FTP_SendType(LPWININETFTPSESSIONW lpwfs, DWORD dwType)
|
||||
{
|
||||
INT nResCode;
|
||||
WCHAR type[] = { 'I','\0' };
|
||||
@ -2214,7 +2214,7 @@ lend:
|
||||
* FALSE on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_GetFileSize(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile, DWORD *dwSize)
|
||||
static BOOL FTP_GetFileSize(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile, DWORD *dwSize)
|
||||
{
|
||||
INT nResCode;
|
||||
BOOL bSuccess = FALSE;
|
||||
@ -2257,7 +2257,7 @@ lend:
|
||||
* FALSE on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_SendPort(LPWININETFTPSESSIONW lpwfs)
|
||||
static BOOL FTP_SendPort(LPWININETFTPSESSIONW lpwfs)
|
||||
{
|
||||
static const WCHAR szIPFormat[] = {'%','d',',','%','d',',','%','d',',','%','d',',','%','d',',','%','d','\0'};
|
||||
INT nResCode;
|
||||
@ -2301,7 +2301,7 @@ lend:
|
||||
* FALSE on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_DoPassive(LPWININETFTPSESSIONW lpwfs)
|
||||
static BOOL FTP_DoPassive(LPWININETFTPSESSIONW lpwfs)
|
||||
{
|
||||
INT nResCode;
|
||||
BOOL bSuccess = FALSE;
|
||||
@ -2379,7 +2379,7 @@ lend:
|
||||
}
|
||||
|
||||
|
||||
BOOL FTP_SendPortOrPasv(LPWININETFTPSESSIONW lpwfs)
|
||||
static BOOL FTP_SendPortOrPasv(LPWININETFTPSESSIONW lpwfs)
|
||||
{
|
||||
if (lpwfs->hdr.dwFlags & INTERNET_FLAG_PASSIVE)
|
||||
{
|
||||
@ -2408,7 +2408,7 @@ BOOL FTP_SendPortOrPasv(LPWININETFTPSESSIONW lpwfs)
|
||||
* FALSE on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_GetDataSocket(LPWININETFTPSESSIONW lpwfs, LPINT nDataSocket)
|
||||
static BOOL FTP_GetDataSocket(LPWININETFTPSESSIONW lpwfs, LPINT nDataSocket)
|
||||
{
|
||||
struct sockaddr_in saddr;
|
||||
size_t addrlen = sizeof(struct sockaddr);
|
||||
@ -2438,7 +2438,7 @@ BOOL FTP_GetDataSocket(LPWININETFTPSESSIONW lpwfs, LPINT nDataSocket)
|
||||
* FALSE on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_SendData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, HANDLE hFile)
|
||||
static BOOL FTP_SendData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, HANDLE hFile)
|
||||
{
|
||||
BY_HANDLE_FILE_INFORMATION fi;
|
||||
DWORD nBytesRead = 0;
|
||||
@ -2520,7 +2520,7 @@ BOOL FTP_SendData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, HANDLE hFile)
|
||||
* 0 on failure
|
||||
*
|
||||
*/
|
||||
DWORD FTP_SendRetrieve(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile, DWORD dwType)
|
||||
static DWORD FTP_SendRetrieve(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile, DWORD dwType)
|
||||
{
|
||||
INT nResCode;
|
||||
DWORD nResult = 0;
|
||||
@ -2570,7 +2570,7 @@ lend:
|
||||
* FALSE on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_RetrieveFileData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, DWORD nBytes, HANDLE hFile)
|
||||
static BOOL FTP_RetrieveFileData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, DWORD nBytes, HANDLE hFile)
|
||||
{
|
||||
DWORD nBytesWritten;
|
||||
DWORD nBytesReceived = 0;
|
||||
@ -2711,7 +2711,7 @@ static void FTP_CloseFileTransferHandle(LPWININETHANDLEHEADER hdr)
|
||||
* NULL on failure
|
||||
*
|
||||
*/
|
||||
HINTERNET FTP_ReceiveFileList(LPWININETFTPSESSIONW lpwfs, INT nSocket, LPCWSTR lpszSearchFile,
|
||||
static HINTERNET FTP_ReceiveFileList(LPWININETFTPSESSIONW lpwfs, INT nSocket, LPCWSTR lpszSearchFile,
|
||||
LPWIN32_FIND_DATAW lpFindFileData, DWORD dwContext)
|
||||
{
|
||||
DWORD dwSize = 0;
|
||||
@ -2800,7 +2800,7 @@ BOOL FTP_ConvertFileProp(LPFILEPROPERTIESW lpafp, LPWIN32_FIND_DATAW lpFindFileD
|
||||
* TRUE on success
|
||||
* FALSE on failure
|
||||
*/
|
||||
BOOL FTP_ParseNextFile(INT nSocket, LPCWSTR lpszSearchFile, LPFILEPROPERTIESW lpfp)
|
||||
static BOOL FTP_ParseNextFile(INT nSocket, LPCWSTR lpszSearchFile, LPFILEPROPERTIESW lpfp)
|
||||
{
|
||||
static const char szSpace[] = " \t";
|
||||
DWORD nBufLen;
|
||||
@ -2965,7 +2965,7 @@ BOOL FTP_ParseNextFile(INT nSocket, LPCWSTR lpszSearchFile, LPFILEPROPERTIESW lp
|
||||
* TRUE on success
|
||||
* FALSE on failure
|
||||
*/
|
||||
BOOL FTP_ParseDirectory(LPWININETFTPSESSIONW lpwfs, INT nSocket, LPCWSTR lpszSearchFile,
|
||||
static BOOL FTP_ParseDirectory(LPWININETFTPSESSIONW lpwfs, INT nSocket, LPCWSTR lpszSearchFile,
|
||||
LPFILEPROPERTIESW *lpafp, LPDWORD dwfp)
|
||||
{
|
||||
BOOL bSuccess = TRUE;
|
||||
@ -3032,7 +3032,7 @@ BOOL FTP_ParseDirectory(LPWININETFTPSESSIONW lpwfs, INT nSocket, LPCWSTR lpszSea
|
||||
* FALSE on failure
|
||||
*
|
||||
*/
|
||||
BOOL FTP_ParsePermission(LPCSTR lpszPermission, LPFILEPROPERTIESW lpfp)
|
||||
static BOOL FTP_ParsePermission(LPCSTR lpszPermission, LPFILEPROPERTIESW lpfp)
|
||||
{
|
||||
BOOL bSuccess = TRUE;
|
||||
unsigned short nPermission = 0;
|
||||
@ -3095,7 +3095,7 @@ BOOL FTP_ParsePermission(LPCSTR lpszPermission, LPFILEPROPERTIESW lpfp)
|
||||
* RETURNS
|
||||
*
|
||||
*/
|
||||
DWORD FTP_SetResponseError(DWORD dwResponse)
|
||||
static DWORD FTP_SetResponseError(DWORD dwResponse)
|
||||
{
|
||||
DWORD dwCode = 0;
|
||||
|
||||
|
@ -2579,7 +2579,7 @@ static const WCHAR szWarning[] = { 'W','a','r','n','i','n','g',0 };
|
||||
static const WCHAR szWWW_Authenticate[] = { 'W','W','W','-','A','u','t','h','e','n','t','i','c','a','t','e',0 };
|
||||
|
||||
/* Note: Must be kept sorted! */
|
||||
const std_hdr_data SORTED_STANDARD_HEADERS[] = {
|
||||
static const std_hdr_data SORTED_STANDARD_HEADERS[] = {
|
||||
{szAccept, HTTP_QUERY_ACCEPT, REQUEST_HDR,},
|
||||
{szAccept_Charset, HTTP_QUERY_ACCEPT_CHARSET, REQUEST_HDR,},
|
||||
{szAccept_Encoding, HTTP_QUERY_ACCEPT_ENCODING, REQUEST_HDR,},
|
||||
|
@ -422,6 +422,63 @@ static BOOL INTERNET_ConfigureProxyFromReg( LPWININETAPPINFOW lpwai )
|
||||
return enabled;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* dump_INTERNET_FLAGS
|
||||
*
|
||||
* Helper function to TRACE the internet flags.
|
||||
*
|
||||
* RETURNS
|
||||
* None
|
||||
*
|
||||
*/
|
||||
static void dump_INTERNET_FLAGS(DWORD dwFlags)
|
||||
{
|
||||
#define FE(x) { x, #x }
|
||||
static const wininet_flag_info flag[] = {
|
||||
FE(INTERNET_FLAG_RELOAD),
|
||||
FE(INTERNET_FLAG_RAW_DATA),
|
||||
FE(INTERNET_FLAG_EXISTING_CONNECT),
|
||||
FE(INTERNET_FLAG_ASYNC),
|
||||
FE(INTERNET_FLAG_PASSIVE),
|
||||
FE(INTERNET_FLAG_NO_CACHE_WRITE),
|
||||
FE(INTERNET_FLAG_MAKE_PERSISTENT),
|
||||
FE(INTERNET_FLAG_FROM_CACHE),
|
||||
FE(INTERNET_FLAG_SECURE),
|
||||
FE(INTERNET_FLAG_KEEP_CONNECTION),
|
||||
FE(INTERNET_FLAG_NO_AUTO_REDIRECT),
|
||||
FE(INTERNET_FLAG_READ_PREFETCH),
|
||||
FE(INTERNET_FLAG_NO_COOKIES),
|
||||
FE(INTERNET_FLAG_NO_AUTH),
|
||||
FE(INTERNET_FLAG_CACHE_IF_NET_FAIL),
|
||||
FE(INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP),
|
||||
FE(INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS),
|
||||
FE(INTERNET_FLAG_IGNORE_CERT_DATE_INVALID),
|
||||
FE(INTERNET_FLAG_IGNORE_CERT_CN_INVALID),
|
||||
FE(INTERNET_FLAG_RESYNCHRONIZE),
|
||||
FE(INTERNET_FLAG_HYPERLINK),
|
||||
FE(INTERNET_FLAG_NO_UI),
|
||||
FE(INTERNET_FLAG_PRAGMA_NOCACHE),
|
||||
FE(INTERNET_FLAG_CACHE_ASYNC),
|
||||
FE(INTERNET_FLAG_FORMS_SUBMIT),
|
||||
FE(INTERNET_FLAG_NEED_FILE),
|
||||
FE(INTERNET_FLAG_TRANSFER_ASCII),
|
||||
FE(INTERNET_FLAG_TRANSFER_BINARY)
|
||||
};
|
||||
#undef FE
|
||||
int i;
|
||||
|
||||
for (i = 0; i < (sizeof(flag) / sizeof(flag[0])); i++) {
|
||||
if (flag[i].val & dwFlags) {
|
||||
TRACE(" %s", flag[i].name);
|
||||
dwFlags &= ~flag[i].val;
|
||||
}
|
||||
}
|
||||
if (dwFlags)
|
||||
TRACE(" Unknown flags (%08lx)\n", dwFlags);
|
||||
else
|
||||
TRACE("\n");
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* InternetOpenW (WININET.@)
|
||||
*
|
||||
@ -3965,60 +4022,3 @@ BOOL WINAPI ResumeSuspendedDownload( HINTERNET hInternet, DWORD dwError )
|
||||
FIXME("(%p, 0x%08lx) stub\n", hInternet, dwError);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* dump_INTERNET_FLAGS
|
||||
*
|
||||
* Helper function to TRACE the internet flags.
|
||||
*
|
||||
* RETURNS
|
||||
* None
|
||||
*
|
||||
*/
|
||||
void dump_INTERNET_FLAGS(DWORD dwFlags)
|
||||
{
|
||||
#define FE(x) { x, #x }
|
||||
static const wininet_flag_info flag[] = {
|
||||
FE(INTERNET_FLAG_RELOAD),
|
||||
FE(INTERNET_FLAG_RAW_DATA),
|
||||
FE(INTERNET_FLAG_EXISTING_CONNECT),
|
||||
FE(INTERNET_FLAG_ASYNC),
|
||||
FE(INTERNET_FLAG_PASSIVE),
|
||||
FE(INTERNET_FLAG_NO_CACHE_WRITE),
|
||||
FE(INTERNET_FLAG_MAKE_PERSISTENT),
|
||||
FE(INTERNET_FLAG_FROM_CACHE),
|
||||
FE(INTERNET_FLAG_SECURE),
|
||||
FE(INTERNET_FLAG_KEEP_CONNECTION),
|
||||
FE(INTERNET_FLAG_NO_AUTO_REDIRECT),
|
||||
FE(INTERNET_FLAG_READ_PREFETCH),
|
||||
FE(INTERNET_FLAG_NO_COOKIES),
|
||||
FE(INTERNET_FLAG_NO_AUTH),
|
||||
FE(INTERNET_FLAG_CACHE_IF_NET_FAIL),
|
||||
FE(INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP),
|
||||
FE(INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS),
|
||||
FE(INTERNET_FLAG_IGNORE_CERT_DATE_INVALID),
|
||||
FE(INTERNET_FLAG_IGNORE_CERT_CN_INVALID),
|
||||
FE(INTERNET_FLAG_RESYNCHRONIZE),
|
||||
FE(INTERNET_FLAG_HYPERLINK),
|
||||
FE(INTERNET_FLAG_NO_UI),
|
||||
FE(INTERNET_FLAG_PRAGMA_NOCACHE),
|
||||
FE(INTERNET_FLAG_CACHE_ASYNC),
|
||||
FE(INTERNET_FLAG_FORMS_SUBMIT),
|
||||
FE(INTERNET_FLAG_NEED_FILE),
|
||||
FE(INTERNET_FLAG_TRANSFER_ASCII),
|
||||
FE(INTERNET_FLAG_TRANSFER_BINARY)
|
||||
};
|
||||
#undef FE
|
||||
int i;
|
||||
|
||||
for (i = 0; i < (sizeof(flag) / sizeof(flag[0])); i++) {
|
||||
if (flag[i].val & dwFlags) {
|
||||
TRACE(" %s", flag[i].name);
|
||||
dwFlags &= ~flag[i].val;
|
||||
}
|
||||
}
|
||||
if (dwFlags)
|
||||
TRACE(" Unknown flags (%08lx)\n", dwFlags);
|
||||
else
|
||||
TRACE("\n");
|
||||
}
|
||||
|
@ -490,6 +490,4 @@ typedef struct
|
||||
const char* name;
|
||||
} wininet_flag_info;
|
||||
|
||||
extern void dump_INTERNET_FLAGS(DWORD dwFlags) ;
|
||||
|
||||
#endif /* _WINE_INTERNET_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user