Menu

#12 Doesn't work on windows(fix!)

open
nobody
None
5
2011-06-05
2011-06-05
No

On mingw/windows as platform, the binary mode has to be set when opening files.

if ((src_file = fopen(argv[1], "rb")) == NULL)
{
printf("Error: cannot open source file for reading!\n");
return 1;
}
if ((dst_file = fopen(argv[2], "wb")) == NULL)
{
printf("Error: cannot open destination file for writing!\n");
return 1;
}

Additional hint: turn off Avira antivir or ./configure won't work
Additional hint There is a warning, that the "packed" keyword is ignored. Disc image looks fine on first glance though.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.