Skip to content

Commit

Permalink
Temporary bugfixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
L-uu committed Apr 29, 2024
1 parent 9d49824 commit a762e2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down
4 changes: 2 additions & 2 deletions src/pipes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a762e2d

Please sign in to comment.