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
94efe81a
Commit
94efe81a
authored
Jul 18, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use nameless unions/structs.
parent
f58ce1ce
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
netconnection.c
dlls/wininet/netconnection.c
+1
-3
urlcache.c
dlls/wininet/urlcache.c
+2
-5
No files found.
dlls/wininet/netconnection.c
View file @
94efe81a
...
@@ -21,8 +21,6 @@
...
@@ -21,8 +21,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#define NONAMELESSUNION
#include "ws2tcpip.h"
#include "ws2tcpip.h"
#include <time.h>
#include <time.h>
...
@@ -162,7 +160,7 @@ static DWORD netconn_verify_cert(netconn_t *conn, PCCERT_CONTEXT cert, HCERTSTOR
...
@@ -162,7 +160,7 @@ static DWORD netconn_verify_cert(netconn_t *conn, PCCERT_CONTEXT cert, HCERTSTOR
*/
*/
memcpy
(
&
chainCopy
,
chain
,
sizeof
(
chainCopy
));
memcpy
(
&
chainCopy
,
chain
,
sizeof
(
chainCopy
));
chainCopy
.
TrustStatus
.
dwErrorStatus
=
0
;
chainCopy
.
TrustStatus
.
dwErrorStatus
=
0
;
sslExtraPolicyPara
.
u
.
cbSize
=
sizeof
(
sslExtraPolicyPara
);
sslExtraPolicyPara
.
cbSize
=
sizeof
(
sslExtraPolicyPara
);
sslExtraPolicyPara
.
dwAuthType
=
AUTHTYPE_SERVER
;
sslExtraPolicyPara
.
dwAuthType
=
AUTHTYPE_SERVER
;
sslExtraPolicyPara
.
pwszServerName
=
conn
->
server
->
name
;
sslExtraPolicyPara
.
pwszServerName
=
conn
->
server
->
name
;
sslExtraPolicyPara
.
fdwChecks
=
conn
->
security_flags
;
sslExtraPolicyPara
.
fdwChecks
=
conn
->
security_flags
;
...
...
dlls/wininet/urlcache.c
View file @
94efe81a
...
@@ -22,9 +22,6 @@
...
@@ -22,9 +22,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "ws2tcpip.h"
#include "ws2tcpip.h"
#include <limits.h>
#include <limits.h>
...
@@ -1270,7 +1267,7 @@ static DWORD urlcache_copy_entry(cache_container *container, const urlcache_head
...
@@ -1270,7 +1267,7 @@ static DWORD urlcache_copy_entry(cache_container *container, const urlcache_head
entry_info
->
lpszLocalFileName
=
NULL
;
entry_info
->
lpszLocalFileName
=
NULL
;
entry_info
->
lpszSourceUrlName
=
NULL
;
entry_info
->
lpszSourceUrlName
=
NULL
;
entry_info
->
CacheEntryType
=
url_entry
->
cache_entry_type
;
entry_info
->
CacheEntryType
=
url_entry
->
cache_entry_type
;
entry_info
->
u
.
dwExemptDelta
=
url_entry
->
exempt_delta
;
entry_info
->
dwExemptDelta
=
url_entry
->
exempt_delta
;
entry_info
->
dwHeaderInfoSize
=
url_entry
->
header_info_size
;
entry_info
->
dwHeaderInfoSize
=
url_entry
->
header_info_size
;
entry_info
->
dwHitRate
=
url_entry
->
hit_rate
;
entry_info
->
dwHitRate
=
url_entry
->
hit_rate
;
entry_info
->
dwSizeHigh
=
url_entry
->
size
.
u
.
HighPart
;
entry_info
->
dwSizeHigh
=
url_entry
->
size
.
u
.
HighPart
;
...
@@ -1394,7 +1391,7 @@ static DWORD urlcache_set_entry_info(entry_url *url_entry, const INTERNET_CACHE_
...
@@ -1394,7 +1391,7 @@ static DWORD urlcache_set_entry_info(entry_url *url_entry, const INTERNET_CACHE_
if
(
field_control
&
CACHE_ENTRY_ATTRIBUTE_FC
)
if
(
field_control
&
CACHE_ENTRY_ATTRIBUTE_FC
)
url_entry
->
cache_entry_type
=
entry_info
->
CacheEntryType
;
url_entry
->
cache_entry_type
=
entry_info
->
CacheEntryType
;
if
(
field_control
&
CACHE_ENTRY_EXEMPT_DELTA_FC
)
if
(
field_control
&
CACHE_ENTRY_EXEMPT_DELTA_FC
)
url_entry
->
exempt_delta
=
entry_info
->
u
.
dwExemptDelta
;
url_entry
->
exempt_delta
=
entry_info
->
dwExemptDelta
;
if
(
field_control
&
CACHE_ENTRY_EXPTIME_FC
)
if
(
field_control
&
CACHE_ENTRY_EXPTIME_FC
)
file_time_to_dos_date_time
(
&
entry_info
->
ExpireTime
,
&
url_entry
->
expire_date
,
&
url_entry
->
expire_time
);
file_time_to_dos_date_time
(
&
entry_info
->
ExpireTime
,
&
url_entry
->
expire_date
,
&
url_entry
->
expire_time
);
if
(
field_control
&
CACHE_ENTRY_HEADERINFO_FC
)
if
(
field_control
&
CACHE_ENTRY_HEADERINFO_FC
)
...
...
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