Bug 801437. Breakage fix for feof(). r=ehsan

Macros make me sad.

--HG--
extra : rebase_source : 1265c3ef7e187c307269273e098ee92c020c2f59
This commit is contained in:
Jeff Muizelaar 2012-11-09 15:40:56 -05:00
parent ba2b51206c
commit 13eb972dba

View File

@ -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",