[Bug 51514] New: URLDownloadToFileA fails as of wine-6.13 (regression)

WineHQ Bugzilla wine-bugs at winehq.org
Sun Jul 25 12:39:52 CDT 2021


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 at winehq.org
          Reporter: xerox.xerox2000x at 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=5edf65616a8dcbf5988bbabe0493827d9e125fc3

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-7.0.3-win-x64.msi";
    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; 
}

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list