Colin Finck : widl: Write the TLB file in binary mode, so the line endings won't be changed.
Alexandre Julliard
julliard at winehq.org
Fri Feb 8 06:19:58 CST 2008
Module: wine
Branch: master
Commit: 318e61535cab9c143891182fa8f2967fa30ed7f6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=318e61535cab9c143891182fa8f2967fa30ed7f6
Author: Colin Finck <mail at colinfinck.de>
Date: Thu Feb 7 17:41:30 2008 +0100
widl: Write the TLB file in binary mode, so the line endings won't be changed.
---
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 51227bf..4e7edf3 100644
--- a/tools/widl/write_msft.c
+++ b/tools/widl/write_msft.c
@@ -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);
More information about the wine-cvs
mailing list