Jelajahi Sumber

Bug 1628: Icons for local files do not show on some systems

Actually fixed by d18ecfd/40f6722 already - This commit just adds a comment explaining the fix.
https://winscp.net/tracker/1628

(cherry picked from commit 86a05c62df1779444ed7eede8c3ab169137f286e)

Source commit: 38b8f8a7b700ddfe5ffc803c77e0b75f28a1b341
Martin Prikryl 7 tahun lalu
induk
melakukan
d7fcdde549
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      source/packages/my/OperationWithTimeout.pas

+ 3 - 0
source/packages/my/OperationWithTimeout.pas

@@ -116,6 +116,9 @@ procedure TOperationWithTimeoutThread.Execute;
 var
   Operation: TOperation;
 begin
+  // Needed for various API, particularly:
+  // - SHGetFileInfo fails to return icon index on some systems;
+  // - ICustomDestinationList.BeginList returns invalid "removed" array.
   CoInitialize(nil);
 
   while WaitForSingleObject(FRequestEvent, INFINITE) = WAIT_OBJECT_0 do