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
9a2f3cb9
Commit
9a2f3cb9
authored
Dec 01, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Consistently use the allocation macros.
parent
56886ab7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
net.c
dlls/winhttp/net.c
+2
-2
url.c
dlls/winhttp/url.c
+1
-1
No files found.
dlls/winhttp/net.c
View file @
9a2f3cb9
...
...
@@ -532,7 +532,7 @@ BOOL netconn_init( netconn_t *conn, BOOL secure )
pCRYPTO_set_id_callback
(
ssl_thread_id
);
num_ssl_locks
=
pCRYPTO_num_locks
();
ssl_locks
=
HeapAlloc
(
GetProcessHeap
(),
0
,
num_ssl_locks
*
sizeof
(
CRITICAL_SECTION
));
ssl_locks
=
heap_alloc
(
num_ssl_locks
*
sizeof
(
CRITICAL_SECTION
));
if
(
!
ssl_locks
)
{
set_last_error
(
ERROR_OUTOFMEMORY
);
...
...
@@ -577,7 +577,7 @@ void netconn_unload( void )
ssl_locks
[
i
].
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
ssl_locks
[
i
]
);
}
HeapFree
(
GetProcessHeap
(),
0
,
ssl_locks
);
heap_free
(
ssl_locks
);
}
DeleteCriticalSection
(
&
init_ssl_cs
);
#endif
...
...
dlls/winhttp/url.c
View file @
9a2f3cb9
...
...
@@ -210,7 +210,7 @@ BOOL WINAPI WinHttpCrackUrl( LPCWSTR url, DWORD len, DWORD flags, LPURL_COMPONEN
debugstr_wn
(
uc
->
lpszExtraInfo
,
uc
->
dwExtraInfoLength
));
exit:
HeapFree
(
GetProcessHeap
(),
0
,
url_decoded
);
heap_free
(
url_decoded
);
return
ret
;
}
...
...
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