which have been broken since r6797.
(At least some versions of Win9x are gratuitously picky about the arguments to
CreateThread(), requiring lpThreadId not to be NULL.)
git-svn-id: svn://svn.tartarus.org/sgt/putty@7132
cda61777-01e9-0310-a592-
d414129be87e
void *privdata, int flags)
{
struct handle *h = snew(struct handle);
void *privdata, int flags)
{
struct handle *h = snew(struct handle);
+ DWORD in_threadid; /* required for Win9x */
h->output = FALSE;
h->u.i.h = handle;
h->output = FALSE;
h->u.i.h = handle;
add234(handles_by_evtomain, h);
CreateThread(NULL, 0, handle_input_threadfunc,
add234(handles_by_evtomain, h);
CreateThread(NULL, 0, handle_input_threadfunc,
+ &h->u.i, 0, &in_threadid);
h->u.i.busy = TRUE;
return h;
h->u.i.busy = TRUE;
return h;
void *privdata, int flags)
{
struct handle *h = snew(struct handle);
void *privdata, int flags)
{
struct handle *h = snew(struct handle);
+ DWORD out_threadid; /* required for Win9x */
h->output = TRUE;
h->u.o.h = handle;
h->output = TRUE;
h->u.o.h = handle;
add234(handles_by_evtomain, h);
CreateThread(NULL, 0, handle_output_threadfunc,
add234(handles_by_evtomain, h);
CreateThread(NULL, 0, handle_output_threadfunc,
+ &h->u.i, 0, &out_threadid);