1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +00:00

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