mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 757611 - pass a FILE* to ferror(), fixes build on OpenBSD - r=ehsan
This commit is contained in:
parent
66b701ad81
commit
2f811f1b3b
@ -591,7 +591,7 @@ static int ensure_copy(const NS_tchar *path, const NS_tchar *dest)
|
||||
size_t left = ss.st_size;
|
||||
while (left) {
|
||||
size_t read = fread(buffer, 1, left, infile);
|
||||
if (ferror(infile)) {
|
||||
if (ferror(infile.get())) {
|
||||
LOG(("ensure_copy: failed to read the file: " LOG_S ", err: %d\n",
|
||||
path, errno));
|
||||
free(buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user