https://bugs.winehq.org/show_bug.cgi?id=38237
Bug ID: 38237 Summary: UrlDownloadToFile should fail when not found Product: Wine Version: 1.7.38 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: urlmon Assignee: wine-bugs@winehq.org Reporter: ocean04@suomi24.fi Distribution: ---
In Windows function fails, when url (jpg) is not found.
wine downloads&saves error page html.
-> application crashed when it tried to use invalid jpg.
FPC test/source:
program notfoundtest;
{$mode Delphi}
uses sysutils, urlmon;
var r: boolean; begin r := UrlDownloadToFile(nil, PChar('http://netikka.net/dev/not_found.jpg'), PChar('C:\t.jpg'), 0, nil)=0; if r=true then begin writeln('Test failed!'); readln; end; end.