Commit da7c2f5f authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

bin2res: Use fstat, handle errors.

parent 9a3a1448
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment