Commit 8769e706 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

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

parent d0927f63
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment