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
17929b92
Commit
17929b92
authored
Nov 16, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Give a name to the critical sections, make them static and delete them…
wininet: Give a name to the critical sections, make them static and delete them when unloading the dll.
parent
d78bfe11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
http.c
dlls/wininet/http.c
+2
-0
netconnection.c
dlls/wininet/netconnection.c
+8
-1
No files found.
dlls/wininet/http.c
View file @
17929b92
...
...
@@ -1825,6 +1825,7 @@ static void HTTPREQ_Destroy(object_header_t *hdr)
}
heap_free
(
request
->
cacheFile
);
request
->
read_section
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
request
->
read_section
);
WININET_Release
(
&
request
->
session
->
hdr
);
...
...
@@ -3047,6 +3048,7 @@ static DWORD HTTP_HttpOpenRequestW(http_session_t *session,
request
->
data_stream
=
&
request
->
netconn_stream
.
data_stream
;
InitializeCriticalSection
(
&
request
->
read_section
);
request
->
read_section
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": http_request_t.read_section"
);
WININET_AddRef
(
&
session
->
hdr
);
request
->
session
=
session
;
...
...
dlls/wininet/netconnection.c
View file @
17929b92
...
...
@@ -484,7 +484,10 @@ static DWORD init_openssl(void)
return
ERROR_OUTOFMEMORY
;
for
(
i
=
0
;
i
<
num_ssl_locks
;
i
++
)
{
InitializeCriticalSection
(
&
ssl_locks
[
i
]);
ssl_locks
[
i
].
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": ssl_locks"
);
}
pCRYPTO_set_locking_callback
(
ssl_lock_callback
);
return
ERROR_SUCCESS
;
...
...
@@ -578,7 +581,11 @@ void NETCON_unload(void)
if
(
ssl_locks
)
{
int
i
;
for
(
i
=
0
;
i
<
num_ssl_locks
;
i
++
)
DeleteCriticalSection
(
&
ssl_locks
[
i
]);
for
(
i
=
0
;
i
<
num_ssl_locks
;
i
++
)
{
ssl_locks
[
i
].
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
ssl_locks
[
i
]);
}
heap_free
(
ssl_locks
);
}
#endif
...
...
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