[PATCH] Open file in binary mode to work around a windows bug

Rob Shearman robertshearman at gmail.com
Tue Sep 9 10:10:54 CDT 2008


2008/9/9 Dmitry Timoshkov <dmitry at codeweavers.com>:
> "Steven Edwards" <winehacker at gmail.com> wrote:
>
>> [PATCH] Open file in binary mode to work around a windows bug
>
> What bug is that? If that's a Windows bug why Wine needs to be patched?

It's not a bug. When opening a file in text mode on Windows, all LFs
will be converted to CRLFs. Typelib files are binary and therefore
random parts of the typelib data
will seemingly be corrupted when read.

The patch is correct, even if the description isn't.

-- 
Rob Shearman



More information about the wine-devel mailing list