From 029ccdccaa5ba26ab0a1b41b4c86b427840cd8b7 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 25 Sep 2005 17:52:12 +0000 Subject: [PATCH] fixed gcc4 warnings svn path=/trunk/; revision=18062 --- reactos/subsys/system/notepad/text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/system/notepad/text.c b/reactos/subsys/system/notepad/text.c index 8436f55165c..a5c06516fdc 100644 --- a/reactos/subsys/system/notepad/text.c +++ b/reactos/subsys/system/notepad/text.c @@ -130,7 +130,7 @@ BOOL ReadText(HANDLE hFile, LPWSTR *ppszText, DWORD *pdwTextLen, int *piEncoding else goto done; - dwCharCount = MultiByteToWideChar(iCodePage, 0, &pBytes[dwPos], dwSize - dwPos, NULL, 0); + dwCharCount = MultiByteToWideChar(iCodePage, 0, (LPCSTR)&pBytes[dwPos], dwSize - dwPos, NULL, 0); if (dwCharCount == 0) goto done; @@ -138,7 +138,7 @@ BOOL ReadText(HANDLE hFile, LPWSTR *ppszText, DWORD *pdwTextLen, int *piEncoding if (!pszAllocText) goto done; - if (!MultiByteToWideChar(iCodePage, 0, &pBytes[dwPos], dwSize - dwPos, pszAllocText, dwCharCount)) + if (!MultiByteToWideChar(iCodePage, 0, (LPCSTR)&pBytes[dwPos], dwSize - dwPos, pszAllocText, dwCharCount)) goto done; pszAllocText[dwCharCount] = '\0';