https://git.reactos.org/?p=reactos.git;a=commitdiff;h=41b94fd17b654326755c2…
commit 41b94fd17b654326755c291aaad39eb400975337
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Fri Oct 13 22:24:37 2017 +0200
[INTL]: Simplify code (addendum to r74582). (#41)
CORE-13242
---
dll/cpl/intl/advanced.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/dll/cpl/intl/advanced.c b/dll/cpl/intl/advanced.c
index 3c9f51101f..0fddc82b5a 100644
--- a/dll/cpl/intl/advanced.c
+++ b/dll/cpl/intl/advanced.c
@@ -404,17 +404,14 @@ ListViewCustomDraw(
case CDDS_ITEMPREPAINT:
if (((PCPAGE)lplvcd->nmcd.lItemlParam)->Flags &
CODEPAGE_NOT_REMOVEABLE)
{
- lplvcd->clrText = GetSysColor(COLOR_GRAYTEXT);
- lplvcd->clrTextBk = GetSysColor(COLOR_WINDOW);
- return CDRF_NEWFONT;
+ lplvcd->clrText = GetSysColor(COLOR_GRAYTEXT);
}
else
{
- lplvcd->clrText = GetSysColor(COLOR_WINDOWTEXT);
- lplvcd->clrTextBk = GetSysColor(COLOR_WINDOW);
- return CDRF_NEWFONT;
+ lplvcd->clrText = GetSysColor(COLOR_WINDOWTEXT);
}
- break;
+ lplvcd->clrTextBk = GetSysColor(COLOR_WINDOW);
+ return CDRF_NEWFONT;
}
return CDRF_DODEFAULT;