mirror of
https://github.com/curl/curl.git
synced 2025-09-20 19:12:40 +03:00
clear the struct size not the pointer size, pointed out in bug report
#1579171
This commit is contained in:
parent
b61fbbde46
commit
930f9bd534
|
@ -208,7 +208,7 @@ BOOL init_thread_sync_data(struct thread_data * td,
|
||||||
{
|
{
|
||||||
HANDLE curr_proc = GetCurrentProcess();
|
HANDLE curr_proc = GetCurrentProcess();
|
||||||
|
|
||||||
memset(tsd, 0, sizeof(tsd));
|
memset(tsd, 0, sizeof(*tsd));
|
||||||
if (!DuplicateHandle(curr_proc, td->mutex_waiting,
|
if (!DuplicateHandle(curr_proc, td->mutex_waiting,
|
||||||
curr_proc, &tsd->mutex_waiting, 0, FALSE,
|
curr_proc, &tsd->mutex_waiting, 0, FALSE,
|
||||||
DUPLICATE_SAME_ACCESS)) {
|
DUPLICATE_SAME_ACCESS)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user