bin2res: Use fstat, handle errors.

This commit is contained in:
Marcus Meissner 2007-02-13 13:25:34 +01:00 committed by Alexandre Julliard
parent 9a3a144896
commit da7c2f5f36

View file

@ -149,7 +149,10 @@ static int process_resources(const char* input_file_name, const char* specific_f
int fd, c;
if (!(fin = fopen(input_file_name, "r"))) return 0;
if (stat(input_file_name, &st) < 0) return 0;
if (fstat(fileno(fin), &st) < 0) {
fclose (fin);
return 0;
}
rc_last_update = st.st_mtime;
if (inserting)