https://bugs.winehq.org/show_bug.cgi?id=51514
Bug ID: 51514 Summary: URLDownloadToFileA fails as of wine-6.13 (regression) Product: Wine Version: 6.13 Hardware: x86-64 OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Regression SHA1: 5edf65616a8dcbf5988bbabe0493827d9e125fc3 Distribution: Debian
Created attachment 70356 --> https://bugs.winehq.org/attachment.cgi?id=70356 executable showing the regression
For Waves Central I have made simple program that downloads a prerequisite msi file (from Powershell-Core`s github page)
This download fails as of wine-6.13
Regression test:
Commit: 5edf65616a8dcbf5988bbabe0493827d9e125fc3 URL: https://source.winehq.org/git/wine.git/?a=commit;h=5edf65616a8dcbf5988bbabe0...
Author: Aaron Hill <aa1ronham at gmail.com> Date: Mon Jul 12 11:40:50 2021 +0200
crypt32: Implement CNG_RSA_PUBLIC_KEY_BLOB encoding/decoding.
Add support for the OID CNG_RSA_PUBLIC_KEY_BLOB to CryptEncodeObjectEx and CryptDecodeObjectEx. This OID decodes to / encodes from memory consisting of a BCRYPT_RSAKEY_BLOB, followed in memory by the exponent and modulus in big-endian format.
Attached also stripped down executable: it should download the msi-file, but currently fails ("Something went wrong :( )
Stripped down source:
#include <stdio.h> #include <urlmon.h> #include <wchar.h>
int __cdecl wmain(int argc, WCHAR *argv[]) {
char url[] = "https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/PowerShell..."; char destination[] = "PowerShell-7.0.3-win-x64.msi";
if( URLDownloadToFileA(NULL, url, destination, 0, NULL) != S_OK ) fprintf(stderr, "Something went wrong :( \n"); else fwprintf(stderr, L"\033[1;34mFile Successfully Downloaded \n\033[0m\n");
return 0; }
https://bugs.winehq.org/show_bug.cgi?id=51514
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aa1ronham@gmail.com
--- Comment #1 from Louis Lenders xerox.xerox2000x@gmail.com --- added author of commit + signer off off commit
https://bugs.winehq.org/show_bug.cgi?id=51514
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hans@meelstraat.net
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- added author of commit + signer off off commit
https://bugs.winehq.org/show_bug.cgi?id=51514
--- Comment #3 from Aaron aa1ronham@gmail.com --- See https://bugs.winehq.org/show_bug.cgi?id=51501
This will be fixed by https://www.winehq.org/pipermail/wine-devel/2021-July/191273.html
https://bugs.winehq.org/show_bug.cgi?id=51514
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED
--- Comment #4 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Aaron from comment #3)
See https://bugs.winehq.org/show_bug.cgi?id=51501
This will be fixed by https://www.winehq.org/pipermail/wine-devel/2021-July/191273.html
Hi, great. I`ll resolve this as dupe then. Thanks for the reply
*** This bug has been marked as a duplicate of bug 51501 ***
https://bugs.winehq.org/show_bug.cgi?id=51514
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate