diff options
author | Koichiro IWAO <meta@vmeta.jp> | 2017-06-06 11:57:13 +0900 |
---|---|---|
committer | metalefty <meta@vmeta.jp> | 2017-06-12 16:57:04 +0900 |
commit | 088bd2d81162c7ca9300a95caccb7eb52cd4f6d7 (patch) | |
tree | 14271bf4cb0b04c8360a70943d5b1fd1c3e02f5d | |
parent | a1b0344db518c64f8d6a951bde9be5b90353b7a5 (diff) | |
download | xrdp-proprietary-088bd2d81162c7ca9300a95caccb7eb52cd4f6d7.tar.gz xrdp-proprietary-088bd2d81162c7ca9300a95caccb7eb52cd4f6d7.zip |
common: implement g_file_readable for WIN32
-rw-r--r-- | common/os_calls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index 592d7d6d..d20dc49f 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -2239,7 +2239,7 @@ int g_file_readable(const char *filename) { #if defined(_WIN32) - return 0; /* TODO: what should be done here? */ + return _waccess(filename, 04) == 0; #else return access(filename, R_OK) == 0; #endif |