Author: gschneider
Date: Wed Oct 1 14:56:51 2008
New Revision: 36617
URL:
http://svn.reactos.org/svn/reactos?rev=36617&view=rev
Log:
After entering a case on iEncoding for ANSI/UTF, iEncoding can only have those two values.
Fixes Coverity CIDS 19, 20.
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 [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/text.c [iso-8859-1] Wed Oct 1 14:56:51 2008
@@ -120,8 +120,6 @@
iCodePage = CP_ACP;
else if (iEncoding == ENCODING_UTF8)
iCodePage = CP_UTF8;
- else
- goto done;
if ((dwSize - dwPos) > 0)
{
@@ -263,8 +261,6 @@
iCodePage = CP_ACP;
else if (iEncoding == ENCODING_UTF8)
iCodePage = CP_UTF8;
- else
- goto done;
iRequiredBytes = WideCharToMultiByte(iCodePage, 0, &pszText[dwPos], dwTextLen -
dwPos, NULL, 0, NULL, NULL);
if (iRequiredBytes <= 0)