mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fix compiling.
svn path=/trunk/; revision=18053
This commit is contained in:
parent
b1da886453
commit
fa1f0c6f02
1 changed files with 3 additions and 3 deletions
|
@ -63,7 +63,7 @@ BOOL ReadText(HANDLE hFile, LPWSTR *ppszText, DWORD *pdwTextLen, int *piEncoding
|
||||||
DWORD dwPos, i;
|
DWORD dwPos, i;
|
||||||
DWORD dwCharCount;
|
DWORD dwCharCount;
|
||||||
BOOL bSuccess = FALSE;
|
BOOL bSuccess = FALSE;
|
||||||
BYTE b;
|
BYTE b = 0;
|
||||||
int iEncoding = ENCODING_ANSI;
|
int iEncoding = ENCODING_ANSI;
|
||||||
int iCodePage;
|
int iCodePage;
|
||||||
WCHAR szCrlf[2] = { '\r', '\n' };
|
WCHAR szCrlf[2] = { '\r', '\n' };
|
||||||
|
@ -216,14 +216,14 @@ done:
|
||||||
|
|
||||||
static BOOL WriteEncodedText(HANDLE hFile, LPCWSTR pszText, DWORD dwTextLen, int iEncoding)
|
static BOOL WriteEncodedText(HANDLE hFile, LPCWSTR pszText, DWORD dwTextLen, int iEncoding)
|
||||||
{
|
{
|
||||||
LPBYTE pBytes;
|
LPBYTE pBytes = NULL;
|
||||||
LPBYTE pAllocBuffer = NULL;
|
LPBYTE pAllocBuffer = NULL;
|
||||||
DWORD dwPos = 0;
|
DWORD dwPos = 0;
|
||||||
DWORD dwByteCount;
|
DWORD dwByteCount;
|
||||||
BYTE buffer[1024];
|
BYTE buffer[1024];
|
||||||
UINT iCodePage;
|
UINT iCodePage;
|
||||||
DWORD dwDummy, i;
|
DWORD dwDummy, i;
|
||||||
BOOL bSuccess;
|
BOOL bSuccess = FALSE;
|
||||||
int iBufferSize, iRequiredBytes;
|
int iBufferSize, iRequiredBytes;
|
||||||
BYTE b;
|
BYTE b;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue