Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fa7d78f1
Commit
fa7d78f1
authored
Dec 12, 2003
by
Robert Shearman
Committed by
Alexandre Julliard
Dec 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Url Cache improvements.
- In Internet{Set,Query}Option functions, hInternet can be NULL. - Add traces to Internet* functions.
parent
75576242
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
12 deletions
+51
-12
internet.c
dlls/wininet/internet.c
+33
-12
urlcache.c
dlls/wininet/urlcache.c
+0
-0
wininet.spec
dlls/wininet/wininet.spec
+18
-0
No files found.
dlls/wininet/internet.c
View file @
fa7d78f1
...
...
@@ -102,6 +102,9 @@ CRITICAL_SECTION csQueue;
LPWORKREQUEST
lpHeadWorkQueue
;
LPWORKREQUEST
lpWorkQueueTail
;
extern
void
URLCacheContainers_CreateDefaults
();
extern
void
URLCacheContainers_DeleteAll
();
/***********************************************************************
* DllMain [Internal] Initializes the internal 'WININET.DLL'.
*
...
...
@@ -131,6 +134,8 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
hWorkEvent
=
CreateEventA
(
0
,
FALSE
,
FALSE
,
NULL
);
InitializeCriticalSection
(
&
csQueue
);
URLCacheContainers_CreateDefaults
();
dwNumThreads
=
0
;
dwNumIdleThreads
=
0
;
dwNumJobs
=
0
;
...
...
@@ -156,6 +161,8 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
case
DLL_PROCESS_DETACH
:
URLCacheContainers_DeleteAll
();
if
(
g_dwTlsErrIndex
!=
TLS_OUT_OF_INDEXES
)
{
HeapFree
(
GetProcessHeap
(),
0
,
TlsGetValue
(
g_dwTlsErrIndex
));
...
...
@@ -360,6 +367,8 @@ HINTERNET WINAPI InternetOpenW(LPCWSTR lpszAgent, DWORD dwAccessType,
CHAR
*
szProxy
=
(
CHAR
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
lenProxy
*
sizeof
(
CHAR
));
CHAR
*
szBypass
=
(
CHAR
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
lenBypass
*
sizeof
(
CHAR
));
TRACE
(
"(%s, 0x%08lx, %s, %s, 0x%08lx)
\n
"
,
debugstr_w
(
lpszAgent
),
dwAccessType
,
debugstr_w
(
lpszProxy
),
debugstr_w
(
lpszProxyBypass
),
dwFlags
);
if
(
!
szAgent
||
!
szProxy
||
!
szBypass
)
{
if
(
szAgent
)
...
...
@@ -430,6 +439,8 @@ BOOL WINAPI InternetGetLastResponseInfoA(LPDWORD lpdwError,
*/
BOOL
WINAPI
InternetGetConnectedState
(
LPDWORD
lpdwStatus
,
DWORD
dwReserved
)
{
TRACE
(
"(%p, 0x%08lx)
\n
"
,
lpdwStatus
,
dwReserved
);
if
(
lpdwStatus
)
{
FIXME
(
"always returning LAN connection.
\n
"
);
*
lpdwStatus
=
INTERNET_CONNECTION_LAN
;
...
...
@@ -451,6 +462,8 @@ BOOL WINAPI InternetGetConnectedState(LPDWORD lpdwStatus, DWORD dwReserved)
BOOL
WINAPI
InternetGetConnectedStateExW
(
LPDWORD
lpdwStatus
,
LPWSTR
lpszConnectionName
,
DWORD
dwNameLen
,
DWORD
dwReserved
)
{
TRACE
(
"(%p, %s, %ld, 0x%08lx)
\n
"
,
lpdwStatus
,
debugstr_w
(
lpszConnectionName
),
dwNameLen
,
dwReserved
);
/* Must be zero */
if
(
dwReserved
)
return
FALSE
;
...
...
@@ -1458,12 +1471,6 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
TRACE
(
"(%p, 0x%08lx, %p, %p)
\n
"
,
hInternet
,
dwOption
,
lpBuffer
,
lpdwBufferLength
);
if
(
NULL
==
hInternet
)
{
INTERNET_SetLastError
(
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
);
return
FALSE
;
}
lpwhh
=
(
LPWININETHANDLEHEADER
)
hInternet
;
switch
(
dwOption
)
...
...
@@ -1538,6 +1545,9 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
bSuccess
=
TRUE
;
break
;
}
case
INTERNET_OPTION_SECURITY_FLAGS
:
FIXME
(
"INTERNET_OPTION_SECURITY_FLAGS: Stub
\n
"
);
break
;
default:
FIXME
(
"Stub! %ld
\n
"
,
dwOption
);
...
...
@@ -1597,12 +1607,6 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
TRACE
(
"0x%08lx
\n
"
,
dwOption
);
if
(
NULL
==
hInternet
)
{
INTERNET_SetLastError
(
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
);
return
FALSE
;
}
lpwhh
=
(
LPWININETHANDLEHEADER
)
hInternet
;
switch
(
dwOption
)
...
...
@@ -1631,6 +1635,15 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
FIXME
(
"Option INTERNET_OPTION_REQUEST_PRIORITY (%ld): STUB
\n
"
,
priority
);
}
break
;
case
INTERNET_OPTION_RESET_URLCACHE_SESSION
:
FIXME
(
"Option INTERNET_OPTION_RESET_URLCACHE_SESSION: STUB
\n
"
);
break
;
case
INTERNET_OPTION_END_BROWSER_SESSION
:
FIXME
(
"Option INTERNET_OPTION_END_BROWSER_SESSION: STUB
\n
"
);
break
;
case
INTERNET_OPTION_CONNECTED_STATE
:
FIXME
(
"Option INTERNET_OPTION_CONNECTED_STATE: STUB
\n
"
);
break
;
default:
FIXME
(
"Option %ld STUB
\n
"
,
dwOption
);
INTERNET_SetLastError
(
ERROR_INVALID_PARAMETER
);
...
...
@@ -1932,6 +1945,8 @@ HINTERNET WINAPI InternetOpenUrlW(HINTERNET hInternet, LPCWSTR lpszUrl,
CHAR
*
szUrl
=
(
CHAR
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
lenUrl
*
sizeof
(
CHAR
));
CHAR
*
szHeaders
=
(
CHAR
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
lenHeaders
*
sizeof
(
CHAR
));
TRACE
(
"
\n
"
);
if
(
!
szUrl
||
!
szHeaders
)
{
if
(
szUrl
)
...
...
@@ -2508,6 +2523,9 @@ BOOL WINAPI InternetCombineUrlA(LPCSTR lpszBaseUrl, LPCSTR lpszRelativeUrl,
DWORD
dwFlags
)
{
HRESULT
hr
=
S_OK
;
TRACE
(
"(%s, %s, %p, %p, 0x%08lx)
\n
"
,
debugstr_a
(
lpszBaseUrl
),
debugstr_a
(
lpszRelativeUrl
),
lpszBuffer
,
lpdwBufferLength
,
dwFlags
);
/* Flip this bit to correspond to URL_ESCAPE_UNSAFE */
dwFlags
^=
ICU_NO_ENCODE
;
hr
=
UrlCombineA
(
lpszBaseUrl
,
lpszRelativeUrl
,
lpszBuffer
,
lpdwBufferLength
,
dwFlags
);
...
...
@@ -2532,6 +2550,9 @@ BOOL WINAPI InternetCombineUrlW(LPCWSTR lpszBaseUrl, LPCWSTR lpszRelativeUrl,
DWORD
dwFlags
)
{
HRESULT
hr
=
S_OK
;
TRACE
(
"(%s, %s, %p, %p, 0x%08lx)
\n
"
,
debugstr_w
(
lpszBaseUrl
),
debugstr_w
(
lpszRelativeUrl
),
lpszBuffer
,
lpdwBufferLength
,
dwFlags
);
/* Flip this bit to correspond to URL_ESCAPE_UNSAFE */
dwFlags
^=
ICU_NO_ENCODE
;
hr
=
UrlCombineW
(
lpszBaseUrl
,
lpszRelativeUrl
,
lpszBuffer
,
lpdwBufferLength
,
dwFlags
);
...
...
dlls/wininet/urlcache.c
View file @
fa7d78f1
This diff is collapsed.
Click to expand it.
dlls/wininet/wininet.spec
View file @
fa7d78f1
101 stub -noname DoConnectoidsExist
102 stub -noname GetDiskInfoA
103 stub -noname PerformOperationOverUrlCacheA
104 stub -noname HttpCheckDavComplianceA
105 stub -noname HttpCheckDavComplianceW
108 stub -noname ImportCookieFileA
109 stub -noname ExportCookieFileA
110 stub -noname ImportCookieFileW
111 stub -noname ExportCookieFileW
112 stub -noname IsProfilesEnabled
116 stub -noname IsDomainlegalCookieDomainA
117 stub -noname IsDomainLegalCookieDomainW
118 stub -noname FindP3PPolicySymbol
120 stub -noname MapResourceToPolicy
121 stub -noname GetP3PPolicy
122 stub -noname FreeP3PObject
123 stub -noname GetP3PRequestStatus
@ stdcall InternetInitializeAutoProxyDll(long)
@ stub ShowCertificate
@ stdcall CommitUrlCacheEntryA(str str double double long str long str str)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment