From a762e2d2a7adc49818b9d809d5481b90c05b76f0 Mon Sep 17 00:00:00 2001 From: L-uu Date: Mon, 29 Apr 2024 05:05:13 +0100 Subject: [PATCH] Temporary bugfixes. --- src/main.c | 2 +- src/pipes.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 7e2101a..05cccd3 100644 --- a/src/main.c +++ b/src/main.c @@ -71,7 +71,7 @@ DWORD GetProcessIdByName(const wchar_t* processName) { } void SanitiseTitle(wchar_t *title) { - wchar_t invalidCharacters[] = { '<', '>', ':', '"', '/', '\\', '|', '?', '*' }; + wchar_t invalidCharacters[] = { '<', '>', ':', '"', '/', '\\', '|', '?', '*', '&'}; for (int i = 0; i < wcslen(title); i++) { for (int j = 0; j < sizeof(invalidCharacters); j++) { if (title[i] == invalidCharacters[j]) { diff --git a/src/pipes.c b/src/pipes.c index af361c4..3d58c43 100644 --- a/src/pipes.c +++ b/src/pipes.c @@ -6,8 +6,8 @@ #include "pipes.h" #define PIPE_NAME "\\\\.\\pipe\\sp_remote_control" -#define BUFFER_SIZE 4096 -#define RESPONSE_SIZE 4096 +#define BUFFER_SIZE 128 +#define RESPONSE_SIZE 40960 //FIXME: Dynamically allocate this memory. HANDLE pipeHandle = NULL;