2008/9/9 Dmitry Timoshkov dmitry@codeweavers.com:
"Steven Edwards" winehacker@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.