From 5c8abfd6a416d001da237454866bc50e92ff5429 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Tue, 9 Sep 2008 16:13:36 +0000 Subject: [PATCH] open TypeLibs with O_BINARY (patch already send to wine) svn path=/trunk/; revision=36087 --- reactos/tools/widl/typelib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/tools/widl/typelib.c b/reactos/tools/widl/typelib.c index b0a482d690d..25cd6e7817c 100644 --- a/reactos/tools/widl/typelib.c +++ b/reactos/tools/widl/typelib.c @@ -359,10 +359,10 @@ static void read_importlib(importlib_t *importlib) file_name = wpp_find_include(importlib->name, NULL); if(file_name) { - fd = open(file_name, O_RDONLY); + fd = open(file_name, O_RDONLY | O_BINARY); free(file_name); }else { - fd = open(importlib->name, O_RDONLY); + fd = open(importlib->name, O_RDONLY | O_BINARY); } if(fd < 0)