mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 01:33:38 +00:00
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++)
|
||||
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;
|
||||
|
||||
if(lstrcmpiW(newFile, pFiles[0]))
|
||||
|
|
Loading…
Reference in a new issue