Dylan Smith : wordpad: Fixed a bug in setting the recent file list in the registry.

Alexandre Julliard julliard at winehq.org
Fri Jun 20 06:22:37 CDT 2008


Module: wine
Branch: master
Commit: 8769e706cc40c97bdda89606a1fa07c065e72c97
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8769e706cc40c97bdda89606a1fa07c065e72c97

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Tue Jun 17 21:20:19 2008 -0400

wordpad: Fixed a bug in setting the recent file list in the registry.

---

 programs/wordpad/registry.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/wordpad/registry.c b/programs/wordpad/registry.c
index b8e5283..28f13b9 100644
--- a/programs/wordpad/registry.c
+++ b/programs/wordpad/registry.c
@@ -285,7 +285,7 @@ void registry_set_filelist(LPCWSTR newFile, HWND hMainWnd)
                 pFiles[0] = newFile;
             } else
             {
-                for(i = 0; pFiles[i] && i < FILELIST_ENTRIES-1; i++)
+                for(i = 0; i < FILELIST_ENTRIES-1; i++)
                     pFiles[FILELIST_ENTRIES-1-i] = pFiles[FILELIST_ENTRIES-2-i];
 
                 pFiles[0] = newFile;




More information about the wine-cvs mailing list