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

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);