mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04: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();
|
||||
|
||||
memset(tsd, 0, sizeof(tsd));
|
||||
memset(tsd, 0, sizeof(*tsd));
|
||||
if (!DuplicateHandle(curr_proc, td->mutex_waiting,
|
||||
curr_proc, &tsd->mutex_waiting, 0, FALSE,
|
||||
DUPLICATE_SAME_ACCESS)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user