Henry Jen wrote: > - *thethd = thd->td; > + *thethd = &thd->td;
-1 - I don't know if you noticed but you just returned to the caller the address of the HANDLE in the thd object, meaning that it won't outlive the destruction of the thd.
Henry Jen wrote: > - *thethd = thd->td; > + *thethd = &thd->td;
-1 - I don't know if you noticed but you just returned to the caller the address of the HANDLE in the thd object, meaning that it won't outlive the destruction of the thd.