Commit 6bdfc2fa authored by Steven Edwards's avatar Steven Edwards Committed by Alexandre Julliard

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

parent 3cfa9c62
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment