mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-03 16:33:47 +00:00
PowerPC tester: open results file in binary mode, aka fix pb on DOS.
This commit is contained in:
parent
8db8d10287
commit
34f90d6b3a
@ -1294,12 +1294,12 @@ int main(int argc, char *argv[])
|
|||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
const char *file = argv[1];
|
const char *file = argv[1];
|
||||||
#if defined(__powerpc__)
|
#if defined(__powerpc__)
|
||||||
if ((fp = fopen(file, "w")) == NULL) {
|
if ((fp = fopen(file, "wb")) == NULL) {
|
||||||
fprintf(stderr, "ERROR: can't open %s for writing\n", file);
|
fprintf(stderr, "ERROR: can't open %s for writing\n", file);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if ((fp = fopen(file, "r")) == NULL) {
|
if ((fp = fopen(file, "rb")) == NULL) {
|
||||||
fprintf(stderr, "ERROR: can't open %s for reading\n", file);
|
fprintf(stderr, "ERROR: can't open %s for reading\n", file);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user