mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 04:35:53 +00:00
Minor fixes.
svn path=/trunk/; revision=685
This commit is contained in:
parent
49f51f37f3
commit
c2829c9869
20 changed files with 372 additions and 264 deletions
|
@ -279,13 +279,13 @@ BOOL FileGetString (HANDLE hFile, LPTSTR lpBuffer, INT nBufferLength)
|
|||
while ((--nBufferLength > 0) &&
|
||||
ReadFile(hFile, &ch, 1, &dwRead, NULL) && dwRead)
|
||||
{
|
||||
*lpString++ = ch;
|
||||
if (ch == _T('\r'))
|
||||
{
|
||||
/* overread '\n' */
|
||||
ReadFile (hFile, &ch, 1, &dwRead, NULL);
|
||||
break;
|
||||
}
|
||||
*lpString++ = ch;
|
||||
}
|
||||
|
||||
if (!dwRead && lpString == lpBuffer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue