- Re-apply null termination fix in GetProtoGetNextEnt, which was lost in ws2_32_new work. CID 716700
CORE-11218
svn path=/trunk/; revision=73861
/* Read 512 bytes */
if (!ReadFile(DbHandle,
Buffer->LineBuffer,
/* Read 512 bytes */
if (!ReadFile(DbHandle,
Buffer->LineBuffer,
+ sizeof(Buffer->LineBuffer) - 1,
&Read,
NULL)) return NULL;
/* Find out where the line ends */
p1 = Buffer->LineBuffer;
&Read,
NULL)) return NULL;
/* Find out where the line ends */
p1 = Buffer->LineBuffer;
+ Buffer->LineBuffer[Read] = ANSI_NULL;
p = strchr(Buffer->LineBuffer, '\n');
/* Bail out if the file is parsed */
p = strchr(Buffer->LineBuffer, '\n');
/* Bail out if the file is parsed */
PWSTHREAD Thread;
INT ErrorCode;
PPROTOENT Protoent;
PWSTHREAD Thread;
INT ErrorCode;
PPROTOENT Protoent;
HANDLE DbHandle;
DPRINT("getprotobynumber: %lx\n", number);
HANDLE DbHandle;
DPRINT("getprotobynumber: %lx\n", number);
PWSTHREAD Thread;
INT ErrorCode;
PPROTOENT Protoent;
PWSTHREAD Thread;
INT ErrorCode;
PPROTOENT Protoent;
HANDLE DbHandle;
DPRINT("getprotobyname: %s\n", name);
HANDLE DbHandle;
DPRINT("getprotobyname: %s\n", name);