commit | 671f02c60613109fa7c4a6d6491650a22147f694 | [log] [tgz] |
---|---|---|
author | Pavel Roskin <proski@gnu.org> | Mon Oct 06 21:05:28 2003 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Mon Oct 06 21:05:28 2003 +0000 |
tree | b6c40d4be6971970fdfb2efcd508b5373008e20b | |
parent | d658fa46889fc50eeffbeb01bf8ffc3096b98c25 [diff] [blame] |
Read and write binary files in binary mode on Windows.
diff --git a/tools/bin2res.c b/tools/bin2res.c index e46f368..9075839 100644 --- a/tools/bin2res.c +++ b/tools/bin2res.c
@@ -164,7 +164,7 @@ if (inserting) fputc(c, ftmp); if (c == EOF) break; - if (!(fres = fopen(res_file_name, inserting ? "r" : "w"))) break; + if (!(fres = fopen(res_file_name, inserting ? "rb" : "wb"))) break; if (inserting) { if (!insert_hexdump(ftmp, fres)) break;