widl: Write the TLB file in binary mode, so the line endings won't be changed.
Colin Finck
mail at colinfinck.de
Fri Jan 18 09:58:04 CST 2008
Changelog:
Write the TLB file in binary mode, so the line endings won't be changed.
This affects Windows and Mac hosts.
---
tools/widl/write_msft.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c
index f5ea2f7..e00eca3 100644
--- a/tools/widl/write_msft.c
+++ b/tools/widl/write_msft.c
@@ -2415,7 +2415,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_RDWR | _O_BINARY,
0666);
if (fd == -1) return retval;
filepos = sizeof(MSFT_Header) + sizeof(MSFT_SegDir);
--
1.4.4.2
More information about the wine-patches
mailing list