1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Small tweak to the new handle API: provide a `privdata' field in

each handle structure, set on initialisation and readable by an API
call.

[originally from svn r6798]
This commit is contained in:
Simon Tatham
2006-08-26 07:41:15 +00:00
parent 291533d3f9
commit 52cdcc6a7c
3 changed files with 22 additions and 14 deletions

View File

@ -577,8 +577,8 @@ int main(int argc, char **argv)
* (The input one we leave until we're through the
* authentication process.)
*/
stdout_handle = handle_output_new(outhandle, stdouterr_sent);
stderr_handle = handle_output_new(errhandle, stdouterr_sent);
stdout_handle = handle_output_new(outhandle, stdouterr_sent, NULL);
stderr_handle = handle_output_new(errhandle, stdouterr_sent, NULL);
main_thread_id = GetCurrentThreadId();
@ -593,7 +593,7 @@ int main(int argc, char **argv)
DWORD ticks;
if (!sending && back->sendok(backhandle)) {
stdin_handle = handle_input_new(inhandle, stdin_gotdata);
stdin_handle = handle_input_new(inhandle, stdin_gotdata, NULL);
sending = TRUE;
}