Kaydet (Commit) 52d35df0 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: size/t/DWORD/int: possible loss of data

Change-Id: I4fa005a8ddb3efd3dc624110215b938ee20a67a6
üst a0d3aa1f
......@@ -172,10 +172,10 @@ DWORD WINAPI InputThread( LPVOID pParam )
WideCharToMultiByte(
GetConsoleCP(), 0, L"\r\n", 2, mbBuff, cNewLine, NULL, NULL);
const size_t dwBufferSize = 256;
const DWORD dwBufferSize = 256;
char* readBuf = (char*) malloc(dwBufferSize);
int readAll = 0;
size_t curBufSize = dwBufferSize;
DWORD curBufSize = dwBufferSize;
while ( ReadFile( GetStdHandle( STD_INPUT_HANDLE ),
readBuf + readAll,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment