diff --git a/src/windows/gobject.c b/src/windows/gobject.c index 17d54af..432907f 100644 --- a/src/windows/gobject.c +++ b/src/windows/gobject.c @@ -102,6 +102,7 @@ void ipc3270_set_session(GObject *object, H3270 *hSession, const char *name, GEr lib3270_set_session_id(ipc->hSession, id); ipc->source->hPipe = hPipe; + ipc->source->hSession = hSession; ipc->source->state = PIPE_STATE_WAITING; ipc->source->overlap.hEvent = CreateEvent( NULL,TRUE,TRUE,NULL); diff --git a/src/windows/gobject.h b/src/windows/gobject.h index f838aa4..18e3bb6 100644 --- a/src/windows/gobject.h +++ b/src/windows/gobject.h @@ -65,13 +65,14 @@ } IPC3270_PIPE_STATE; typedef struct _ipc3270_pipe_source { - GSource gsrc; - HANDLE hPipe; + GSource gsrc; + HANDLE hPipe; - IPC3270_PIPE_STATE state; + IPC3270_PIPE_STATE state; + + OVERLAPPED overlap; + unsigned char buffer[PIPE_BUFFER_LENGTH+1]; - OVERLAPPED overlap; - unsigned char buffer[PIPE_BUFFER_LENGTH+1]; } IPC3270_PIPE_SOURCE; struct _ipc3270 { -- libgit2 0.21.2