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
e6bd2881
Commit
e6bd2881
authored
Dec 01, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Remove some superfluous casts.
parent
82a3c433
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
ftp.c
dlls/wininet/ftp.c
+1
-1
http.c
dlls/wininet/http.c
+2
-2
internet.c
dlls/wininet/internet.c
+5
-5
urlcache.c
dlls/wininet/urlcache.c
+1
-1
No files found.
dlls/wininet/ftp.c
View file @
e6bd2881
...
...
@@ -2737,7 +2737,7 @@ static BOOL FTP_InitListenSocket(LPWININETFTPSESSIONW lpwfs)
lpwfs
->
lstnSocketAddress
=
lpwfs
->
socketAddress
;
/* and get the system to assign us a port */
lpwfs
->
lstnSocketAddress
.
sin_port
=
htons
(
(
u_short
)
0
);
lpwfs
->
lstnSocketAddress
.
sin_port
=
htons
(
0
);
if
(
bind
(
lpwfs
->
lstnSocket
,(
struct
sockaddr
*
)
&
lpwfs
->
lstnSocketAddress
,
sizeof
(
struct
sockaddr_in
))
==
-
1
)
{
...
...
dlls/wininet/http.c
View file @
e6bd2881
...
...
@@ -773,8 +773,8 @@ BOOL WINAPI HttpEndRequestA(HINTERNET hRequest,
ptr
=
lpBuffersOut
;
if
(
ptr
)
lpBuffersOutW
=
(
LPINTERNET_BUFFERSW
)
HeapAlloc
(
GetProcessHeap
()
,
HEAP_ZERO_MEMORY
,
sizeof
(
INTERNET_BUFFERSW
));
lpBuffersOutW
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
INTERNET_BUFFERSW
));
else
lpBuffersOutW
=
NULL
;
...
...
dlls/wininet/internet.c
View file @
e6bd2881
...
...
@@ -786,7 +786,7 @@ HINTERNET WINAPI InternetOpenA(LPCSTR lpszAgent, DWORD dwAccessType,
BOOL
WINAPI
InternetGetLastResponseInfoA
(
LPDWORD
lpdwError
,
LPSTR
lpszBuffer
,
LPDWORD
lpdwBufferLength
)
{
LPWITHREADERROR
lpwite
=
(
LPWITHREADERROR
)
TlsGetValue
(
g_dwTlsErrIndex
);
LPWITHREADERROR
lpwite
=
TlsGetValue
(
g_dwTlsErrIndex
);
TRACE
(
"
\n
"
);
...
...
@@ -823,7 +823,7 @@ BOOL WINAPI InternetGetLastResponseInfoA(LPDWORD lpdwError,
BOOL
WINAPI
InternetGetLastResponseInfoW
(
LPDWORD
lpdwError
,
LPWSTR
lpszBuffer
,
LPDWORD
lpdwBufferLength
)
{
LPWITHREADERROR
lpwite
=
(
LPWITHREADERROR
)
TlsGetValue
(
g_dwTlsErrIndex
);
LPWITHREADERROR
lpwite
=
TlsGetValue
(
g_dwTlsErrIndex
);
TRACE
(
"
\n
"
);
...
...
@@ -3049,7 +3049,7 @@ static LPWITHREADERROR INTERNET_AllocThreadError(void)
*/
void
INTERNET_SetLastError
(
DWORD
dwError
)
{
LPWITHREADERROR
lpwite
=
(
LPWITHREADERROR
)
TlsGetValue
(
g_dwTlsErrIndex
);
LPWITHREADERROR
lpwite
=
TlsGetValue
(
g_dwTlsErrIndex
);
if
(
!
lpwite
)
lpwite
=
INTERNET_AllocThreadError
();
...
...
@@ -3070,7 +3070,7 @@ void INTERNET_SetLastError(DWORD dwError)
*/
DWORD
INTERNET_GetLastError
(
void
)
{
LPWITHREADERROR
lpwite
=
(
LPWITHREADERROR
)
TlsGetValue
(
g_dwTlsErrIndex
);
LPWITHREADERROR
lpwite
=
TlsGetValue
(
g_dwTlsErrIndex
);
if
(
!
lpwite
)
return
0
;
/* TlsGetValue clears last error, so set it again here */
SetLastError
(
lpwite
->
dwError
);
...
...
@@ -3143,7 +3143,7 @@ BOOL INTERNET_AsyncCall(LPWORKREQUEST lpWorkRequest)
*/
LPSTR
INTERNET_GetResponseBuffer
(
void
)
{
LPWITHREADERROR
lpwite
=
(
LPWITHREADERROR
)
TlsGetValue
(
g_dwTlsErrIndex
);
LPWITHREADERROR
lpwite
=
TlsGetValue
(
g_dwTlsErrIndex
);
if
(
!
lpwite
)
lpwite
=
INTERNET_AllocThreadError
();
TRACE
(
"
\n
"
);
...
...
dlls/wininet/urlcache.c
View file @
e6bd2881
...
...
@@ -2794,7 +2794,7 @@ HANDLE WINAPI RetrieveUrlCacheEntryStreamA(
pStream
->
hFile
=
hFile
;
strcpy
(
pStream
->
lpszUrl
,
lpszUrlName
);
return
(
HANDLE
)
pStream
;
return
pStream
;
}
/***********************************************************************
...
...
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