mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
ignore unexpected exceptions while extracting icons
svn path=/branches/lean-explorer/; revision=10134
This commit is contained in:
@@ -305,7 +305,11 @@ void ShellDirectory::read_directory(int scan_flags)
|
||||
if (w32fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||
entry->_icon_id = ICID_FOLDER;
|
||||
else if (scan_flags & SCAN_EXTRACT_ICONS)
|
||||
entry->extract_icon();
|
||||
try {
|
||||
entry->extract_icon();
|
||||
} catch(COMException&) {
|
||||
// ignore unexpected exceptions while extracting icons
|
||||
}
|
||||
|
||||
last = entry;
|
||||
} while(FindNextFile(hFind, &w32fd));
|
||||
@@ -407,7 +411,11 @@ void ShellDirectory::read_directory(int scan_flags)
|
||||
if (!(entry->_data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ||
|
||||
!(attribs & SFGAO_FILESYSTEM)) {
|
||||
if (scan_flags & SCAN_EXTRACT_ICONS)
|
||||
entry->extract_icon();
|
||||
try {
|
||||
entry->extract_icon();
|
||||
} catch(COMException&) {
|
||||
// ignore unexpected exceptions while extracting icons
|
||||
}
|
||||
} else if (entry->_data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||
entry->_icon_id = ICID_FOLDER;
|
||||
else
|
||||
|
||||
@@ -154,7 +154,7 @@ HWND StartMenu::Create(int x, int y, const StartMenuFolders& folders, HWND hwndP
|
||||
}
|
||||
|
||||
|
||||
LRESULT StartMenu::Init(LPCREATESTRUCT pcs)
|
||||
LRESULT StartMenu::Init(LPCREATESTRUCT pcs)
|
||||
{
|
||||
try {
|
||||
AddEntries();
|
||||
|
||||
Reference in New Issue
Block a user