http://bugs.winehq.org/show_bug.cgi?id=32130
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2012-11-12 16:28:33 CST --- Created attachment 42484 --> http://bugs.winehq.org/attachment.cgi?id=42484 patch using IBindStatusCallback to cancel
I tried writing a patch to allow an abort during the download, but I'm running into the problem that there is no way to immediately abort the UrlDownloadToFile call. (We can abort it the next time there's progress, but that won't work if the download stalls and the user clicks Cancel.)
I think that the way this works now, we have to abort the download/install thread cooperatively or add some complicated synchronization. Otherwise, there's a race between disabling the Cancel button after the download finishes and getting the notification of the user clicking Cancel on the main thread.