Author: cwittich
Date: Wed Jan 30 15:33:28 2008
New Revision: 32053
URL:
http://svn.reactos.org/svn/reactos?rev=32053&view=rev
Log:
call WriteFile with the correct Buffer instead of a NULL pointer
See issue #2121 for more details.
Modified:
trunk/reactos/base/applications/notepad/text.c
Modified: trunk/reactos/base/applications/notepad/text.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/text.c (original)
+++ trunk/reactos/base/applications/notepad/text.c Wed Jan 30 15:33:28 2008
@@ -253,6 +253,7 @@
buffer[i+0] = buffer[i+1];
buffer[i+1] = b;
}
+ pBytes = (LPBYTE) &buffer[dwPos];
dwPos += dwByteCount / sizeof(WCHAR);
break;