Переглянути джерело

Bug 2161: Consistency with loading icons synchronously and on the background (2nd)

https://winscp.net/tracker/2161

Source commit: 729ab5694089154a9f3f79c1f51a909011214f75
Martin Prikryl 2 роки тому
батько
коміт
eba1097c4b
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      source/packages/filemng/DirView.pas

+ 1 - 0
source/packages/filemng/DirView.pas

@@ -675,6 +675,7 @@ var
   IsSpecialExt: Boolean;
   TypeName: string;
 begin
+  CoInitialize(nil); // needed for SHGetFileInfo
   if Assigned(FOwner.TopItem) then FIndex := FOwner.TopItem.Index
     else FIndex := 0;