Skip to content
Snippets Groups Projects
Commit 6661bcc9 authored by Peter Hunnisett's avatar Peter Hunnisett Committed by Alexandre Julliard
Browse files

Fixed compile error.

parent 096aba2e
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ int insert_hex (char * infile, FILE * outfile)
fprintf(stderr, errorOpenFile );
exit(1);
}
if ((fstat(fd, &st) == -1) || (p_in_file = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED)
if ((fstat(fd, &st) == -1) || (p_in_file = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == (void *)-1)
{
fprintf(stderr, errorOpenFile );
close(fd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment