Write the TLB file in binary mode, so the line endings won't be changed.

Fixes the MSI registration (I reenabled it as well).
Credits go to Aleksey and Hervé again.

svn path=/trunk/; revision=31868
This commit is contained in:
Colin Finck
2008-01-18 16:12:59 +00:00
parent c9cf79d518
commit e2a747b76d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<group>
<module name="msi" type="win32dll" baseaddress="${BASEADDRESS_MSI}" installbase="system32" installname="msi.dll" allowwarnings="true">
<!--autoregister infsection="OleControlDlls" type="DllRegisterServer" /-->
<autoregister infsection="OleControlDlls" type="DllRegisterServer" />
<importlibrary definition="msi.spec.def" />
<include base="msi">.</include>
<include base="ReactOS">include/reactos/wine</include>
+1 -1
View File
@@ -2413,7 +2413,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);