Fixed compile error.

This commit is contained in:
Peter Hunnisett 1999-11-21 01:01:42 +00:00 committed by Alexandre Julliard
parent 096aba2ed1
commit 6661bcc972
1 changed files with 1 additions and 1 deletions

View File

@ -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);