widl: Open files in binary mode to avoid corruption from text mode on Windows.
This commit is contained in:
parent
3cfa9c626f
commit
6bdfc2fa2c
tools/widl
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue