mirror of https://github.com/dahall/Vanara.git
Fixed bug in ShellItemImages throwing unnecessary error if unable to generate thumbnail
parent
5054e2c6a2
commit
1d9289086b
|
@ -40,8 +40,8 @@ namespace Vanara.Windows.Shell
|
|||
hr = fctry.GetImage(size, (SIIGBF)flags, out hbmp);
|
||||
if (hr == 0x8004B200 && flags.IsFlagSet(ShellItemGetImageOptions.ThumbnailOnly))
|
||||
throw new InvalidOperationException("Thumbnails are not supported by this item.");
|
||||
hr.ThrowIfFailed();
|
||||
return hbmp;
|
||||
if (hr.Succeeded)
|
||||
return hbmp;
|
||||
}
|
||||
|
||||
//hr = LoadImageFromThumbnailProvider(shellItem.IShellItem, ref sz, out hbmp);
|
||||
|
|
Loading…
Reference in New Issue