[PATCH v2] msvcrt: Fix reading BOM-less files opened with ccs=unicode

Piotr Caban piotr at codeweavers.com
Wed Jan 27 12:07:26 CST 2021


From: Martin Storsjo <martin at martin.st>

This fixes a regression in running MSVC 2010 in wine, when reading
.def files (regressed in b0ab1b76029eaface724a28483fe8b0ea36029dc).

Signed-off-by: Martin Storsjo <martin at martin.st>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
---
v2:
  - changed the implementation so internal fd->exflag value is correct
  - removed C++ style comments

  dlls/msvcrt/file.c       |  6 ++++--
  dlls/msvcrt/tests/file.c | 34 ++++++++++++++++++++++++++++++++++
  2 files changed, 38 insertions(+), 2 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-msvcrt-Fix-reading-BOM-less-files-opened-with-ccs-unic.txt
Type: text/x-patch
Size: 2536 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20210127/6168bc59/attachment.bin>


More information about the wine-devel mailing list