widl: Write the TLB file in binary mode, so the line endings won't be changed.

This commit is contained in:
Colin Finck 2008-02-07 17:41:30 +01:00 committed by Alexandre Julliard
parent 0fae921727
commit 318e61535c
1 changed files with 1 additions and 1 deletions

View File

@ -2418,7 +2418,7 @@ static int save_all_changes(msft_typelib_t *typelib)
retval = TYPE_E_IOERROR;
fd = creat(typelib->typelib->filename, 0666);
fd = open(typelib->typelib->filename, O_CREAT | O_WRONLY | O_TRUNC | O_BINARY, 0666);
if (fd == -1) return retval;
filepos = sizeof(MSFT_Header) + sizeof(MSFT_SegDir);