mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-05-13 08:57:27 +00:00
Bug 801437. Breakage fix for feof(). r=ehsan
Macros make me sad. --HG-- extra : rebase_source : 1265c3ef7e187c307269273e098ee92c020c2f59
This commit is contained in:
parent
ba2b51206c
commit
13eb972dba
@ -651,7 +651,7 @@ static int ensure_copy(const NS_tchar *path, const NS_tchar *dest)
|
||||
if (!buffer)
|
||||
return UPDATER_MEM_ERROR;
|
||||
|
||||
while (!feof(infile)) {
|
||||
while (!feof(infile.get())) {
|
||||
size_t read = fread(buffer, 1, blockSize, infile);
|
||||
if (ferror(infile.get())) {
|
||||
LOG(("ensure_copy: failed to read the file: " LOG_S ", err: %d",
|
||||
|
Loading…
x
Reference in New Issue
Block a user