Read and write binary files in binary mode on Windows.

This commit is contained in:
Pavel Roskin 2003-10-06 21:05:28 +00:00 committed by Alexandre Julliard
parent d658fa4688
commit 671f02c606
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ int process_resources(const char* input_file_name, const char* specific_file_nam
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;