Skip to content

GWin32Mount: Remove SHGetFileInfoW()

LRN requested to merge lrn/glib:remove-shgetfileinfo into master

This function can cause significant delays when the mounted volume is disconnected or just weird. Use IExtractIconW::GetIconLocation() (for icon) and IShellFolder::GetDisplayNameOf() (for display name) instead.

Theoretically, this should require COM to be initialized, but in my tests this code worked just fine without calling CoInitializeEx().

Merge request reports