diff --git a/server/pw3270-plugin-ipc.cbp b/server/pw3270-plugin-ipc.cbp index d64b95b..661f134 100644 --- a/server/pw3270-plugin-ipc.cbp +++ b/server/pw3270-plugin-ipc.cbp @@ -121,6 +121,9 @@ + + diff --git a/server/src/core/windows/pipesource.c b/server/src/core/windows/pipesource.c index d6dd4ab..af3b393 100644 --- a/server/src/core/windows/pipesource.c +++ b/server/src/core/windows/pipesource.c @@ -101,7 +101,7 @@ static void process_input(IPC3270_PIPE_SOURCE *source, DWORD cbRead) { int request_type = 0; if(lib3270_get_toggle(hSession,LIB3270_TOGGLE_EVENT_TRACE)) - lib3270_trace_data(hSession, "IPC Data block received on pipe", (const char *) source->buffer, (size_t) cbRead); + lib3270_trace_data(hSession, "IPC Data block received on pipe", (const unsigned char *) source->buffer, (size_t) cbRead); debug("Received packet \"%s\" with %u bytes", request_name, (unsigned int) cbRead); @@ -169,7 +169,7 @@ static void process_input(IPC3270_PIPE_SOURCE *source, DWORD cbRead) { DWORD wrote = (DWORD) szPacket; if(lib3270_get_toggle(hSession,LIB3270_TOGGLE_EVENT_TRACE)) - lib3270_trace_data(hSession, "IPC Data block sent to pipe", (const char *) buffer, szPacket); + lib3270_trace_data(hSession, "IPC Data block sent to pipe", (const unsigned char *) buffer, szPacket); WriteFile(source->hPipe,buffer,wrote,&wrote,NULL); diff --git a/server/src/core/windows/response.c b/server/src/core/windows/response.c index 9d2d452..89216cf 100644 --- a/server/src/core/windows/response.c +++ b/server/src/core/windows/response.c @@ -121,6 +121,17 @@ void ipc3270_response_append_string(GObject *object, const gchar *text) { } +void ipc3270_response_append_boolean(GObject *object, gboolean value) { + + ipc3270Response * response = IPC3270_RESPONSE(object); + + if(response->value) + g_variant_unref(response->value); + + response->value = g_variant_new_boolean(value); +} + + GVariant * ipc3270_response_steal_value(GObject *object) { ipc3270Response * response = IPC3270_RESPONSE(object); -- libgit2 0.21.2