Commit 955cc2c4 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

use sys_open in sys_trytoopenone for Windows ucs2 filenames in abstractions

parent 9d2190ed
......@@ -357,7 +357,7 @@ int sys_trytoopenone(const char *dir, const char *name, const char* ext,
DEBUG(post("looking for %s",dirresult));
/* see if we can open the file for reading */
if ((fd=open(dirresult,O_RDONLY | MSWOPENFLAG(bin))) >= 0)
if ((fd = sys_open(dirresult,O_RDONLY | MSWOPENFLAG(bin))) >= 0)
/* in unix, further check that it's not a directory */
Supports Markdown
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