From fa1f0c6f02c79719b2c77958dd093c209270b0fe Mon Sep 17 00:00:00 2001 From: Emanuele Aliberti Date: Sun, 25 Sep 2005 13:56:45 +0000 Subject: [PATCH] Fix compiling. svn path=/trunk/; revision=18053 --- reactos/subsys/system/notepad/text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/subsys/system/notepad/text.c b/reactos/subsys/system/notepad/text.c index 9a17c16ec4f..8436f55165c 100644 --- a/reactos/subsys/system/notepad/text.c +++ b/reactos/subsys/system/notepad/text.c @@ -63,7 +63,7 @@ BOOL ReadText(HANDLE hFile, LPWSTR *ppszText, DWORD *pdwTextLen, int *piEncoding DWORD dwPos, i; DWORD dwCharCount; BOOL bSuccess = FALSE; - BYTE b; + BYTE b = 0; int iEncoding = ENCODING_ANSI; int iCodePage; WCHAR szCrlf[2] = { '\r', '\n' }; @@ -216,14 +216,14 @@ done: static BOOL WriteEncodedText(HANDLE hFile, LPCWSTR pszText, DWORD dwTextLen, int iEncoding) { - LPBYTE pBytes; + LPBYTE pBytes = NULL; LPBYTE pAllocBuffer = NULL; DWORD dwPos = 0; DWORD dwByteCount; BYTE buffer[1024]; UINT iCodePage; DWORD dwDummy, i; - BOOL bSuccess; + BOOL bSuccess = FALSE; int iBufferSize, iRequiredBytes; BYTE b;