浏览代码

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 年之前
父节点
当前提交
d7fcdde549
共有 1 个文件被更改,包括 3 次插入0 次删除
  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