Thomas Faber : wordpad: Remove superfluous check in registry_set_filelist.
Alexandre Julliard
julliard at winehq.org
Sun Jul 3 12:18:26 CDT 2016
Module: wine
Branch: master
Commit: f07a25467f07e72046e9dc0ccf731e3e0cb52bdb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f07a25467f07e72046e9dc0ccf731e3e0cb52bdb
Author: Thomas Faber <thomas.faber at reactos.org>
Date: Sun Jun 26 10:59:08 2016 +0200
wordpad: Remove superfluous check in registry_set_filelist.
Signed-off-by: Thomas Faber <thomas.faber at reactos.org>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/wordpad/registry.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/wordpad/registry.c b/programs/wordpad/registry.c
index bf2af5b..d53b747 100644
--- a/programs/wordpad/registry.c
+++ b/programs/wordpad/registry.c
@@ -298,7 +298,7 @@ void registry_set_filelist(LPCWSTR newFile, HWND hMainWnd)
if(!lstrcmpiW(pFiles[i], newFile))
{
int j;
- for(j = 0; pFiles[j] && j < i; j++)
+ for(j = 0; j < i; j++)
{
pFiles[i-j] = pFiles[i-j-1];
}
More information about the wine-cvs
mailing list