wordpad: Only read up to the maximum number of recent files from the menu.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7af3f65188
commit
9b701eb7eb
|
@ -283,7 +283,7 @@ void registry_set_filelist(LPCWSTR newFile, HWND hMainWnd)
|
||||||
for(i = 0; i < FILELIST_ENTRIES; i++)
|
for(i = 0; i < FILELIST_ENTRIES; i++)
|
||||||
pFiles[i] = NULL;
|
pFiles[i] = NULL;
|
||||||
|
|
||||||
for(i = 0; GetMenuItemInfoW(hMenu, ID_FILE_RECENT1+i, FALSE, &mi); i++)
|
for(i = 0; i < FILELIST_ENTRIES && GetMenuItemInfoW(hMenu, ID_FILE_RECENT1+i, FALSE, &mi); i++)
|
||||||
pFiles[i] = (LPWSTR)mi.dwItemData;
|
pFiles[i] = (LPWSTR)mi.dwItemData;
|
||||||
|
|
||||||
if(lstrcmpiW(newFile, pFiles[0]))
|
if(lstrcmpiW(newFile, pFiles[0]))
|
||||||
|
|
Loading…
Reference in New Issue