From 07c489c7d2e84931da536e728156b858a5a1724c Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Wed, 30 Jan 2008 12:33:28 +0000 Subject: [PATCH] call WriteFile with the correct Buffer instead of a NULL pointer See issue #2121 for more details. svn path=/trunk/; revision=32053 --- reactos/base/applications/notepad/text.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/base/applications/notepad/text.c b/reactos/base/applications/notepad/text.c index e230db30a50..f99420f91ba 100644 --- a/reactos/base/applications/notepad/text.c +++ b/reactos/base/applications/notepad/text.c @@ -253,6 +253,7 @@ static BOOL WriteEncodedText(HANDLE hFile, LPCWSTR pszText, DWORD dwTextLen, int buffer[i+0] = buffer[i+1]; buffer[i+1] = b; } + pBytes = (LPBYTE) &buffer[dwPos]; dwPos += dwByteCount / sizeof(WCHAR); break;