widl: Open files in binary mode to avoid corruption from text mode on Windows.

This commit is contained in:
Steven Edwards 2008-09-10 09:18:14 -04:00 committed by Alexandre Julliard
parent 3cfa9c626f
commit 6bdfc2fa2c
1 changed files with 2 additions and 2 deletions
tools/widl

View File

@ -354,10 +354,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)