windows use right perversion flgs
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
95181d96a7
commit
d1c6d0bb06
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ _lws_plat_file_open(const char *filename, unsigned long *filelen, int flags)
|
|||
WCHAR buf[MAX_PATH];
|
||||
|
||||
MultiByteToWideChar(CP_UTF8, 0, filename, -1, buf, ARRAY_SIZE(buf));
|
||||
if (flags & O_RDONLY) {
|
||||
if (flags & _O_RDONLY) {
|
||||
ret = CreateFileW(buf, GENERIC_READ, FILE_SHARE_READ,
|
||||
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue