2 Commits

Author SHA1 Message Date
EnderIce2
c23af8300c Increase pipe buffer 2024-05-23 06:00:45 +03:00
EnderIce2
81aa5d8d18 Remove unused macro 2024-05-13 08:42:23 +03:00
2 changed files with 4 additions and 8 deletions

View File

@@ -43,6 +43,8 @@
__attribute__((__always_inline__, __gnu_inline__))
#define naked __attribute__((naked))
#define BUFFER_LENGTH 2048
typedef unsigned short sa_family_t;
typedef char *caddr_t;
typedef unsigned socklen_t;
@@ -322,7 +324,7 @@ void PipeBufferInThread(LPVOID lpParam)
int EOFCount = 0;
while (TRUE)
{
char buffer[1024];
char buffer[BUFFER_LENGTH];
int read = sys_read(bt->fd, buffer, sizeof(buffer));
if (unlikely(read < 0))
@@ -417,7 +419,7 @@ void PipeBufferOutThread(LPVOID lpParam)
bt->fd, bt->hPipe);
while (TRUE)
{
char buffer[1024];
char buffer[BUFFER_LENGTH];
DWORD dwRead;
if (unlikely(!ReadFile(bt->hPipe, buffer, sizeof(buffer),

View File

@@ -5,12 +5,6 @@
#define VER_VERSION 1,1,0,0
#define VER_VERSION_STR "1.1\0"
#ifndef DEBUG
#define VER_DEBUG 0
#else
#define VER_DEBUG VS_FF_DEBUG
#endif
VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_VERSION
PRODUCTVERSION VER_VERSION