widl: Write the TLB file in binary mode, so the line endings won't be changed.
This commit is contained in:
parent
0fae921727
commit
318e61535c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue