[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ros-diffs
Subject:    [ros-diffs] [cwittich] 32053: call WriteFile with the correct
From:       cwittich () svn ! reactos ! org
Date:       2008-01-30 12:33:28
Message-ID: 20080130123328.DA5C7FF03 () mail ! smartxx ! ru
[Download RAW message or body]

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/text.c?rev=32053&r1=32052&r2=32053&view=diff
 ==============================================================================
--- 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;
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic