Explorar o código

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

https://winscp.net/tracker/2161

Source commit: 729ab5694089154a9f3f79c1f51a909011214f75
Martin Prikryl %!s(int64=2) %!d(string=hai) anos
pai
achega
eba1097c4b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      source/packages/filemng/DirView.pas

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

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