Michael Stefaniuc : shlwapi: Remove always true if-check (PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Nov 26 14:13:54 CST 2014
Module: wine
Branch: master
Commit: 6ae26c7b53bf3ccd039f6976427fbe0f5bb3a7db
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6ae26c7b53bf3ccd039f6976427fbe0f5bb3a7db
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Nov 26 12:08:26 2014 +0100
shlwapi: Remove always true if-check (PVS-Studio).
---
dlls/shlwapi/ordinal.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/shlwapi/ordinal.c b/dlls/shlwapi/ordinal.c
index 8d3f1eb..0ea235c 100644
--- a/dlls/shlwapi/ordinal.c
+++ b/dlls/shlwapi/ordinal.c
@@ -5054,11 +5054,8 @@ INT WINAPI SHFormatDateTimeW(const FILETIME UNALIGNED *fileTime, DWORD *flags,
{
if ((fmt_flags & FDTF_LONGDATE) && (ret < size + 2))
{
- if (ret < size + 2)
- {
- lstrcatW(&buf[ret-1], sep1);
- ret += 2;
- }
+ lstrcatW(&buf[ret-1], sep1);
+ ret += 2;
}
else
{
More information about the wine-cvs
mailing list