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

This commit is contained in:
Dylan Smith 2008-06-17 21:20:19 -04:00 committed by Alexandre Julliard
parent d0927f63aa
commit 8769e706cc
1 changed files with 1 additions and 1 deletions

View File

@ -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;