diff options
author | AndersBroman <anders.broman@ericsson.com> | 2015-06-23 22:03:20 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-06-23 20:12:39 +0000 |
commit | 89fbf02ab57a4f318b218ae49f7657a8530c85dd (patch) | |
tree | 202f6baef299942339c132797c045d141c811d75 /wsutil/filesystem.c | |
parent | 65bac2d1dbf59bf3b9b5ec990c90071eb5a4c2dc (diff) | |
download | wireshark-89fbf02ab57a4f318b218ae49f7657a8530c85dd.tar.gz |
[MSVC 2015] file_exists() fails on MSVC2105 as file_stat.st_ino gets reset
to zero in the function call if the file does not exist. The general code
seems to work with MSVC2015 so use that.
Change-Id: Ic5360089f96be620fbe99ba4e819e0caa5ca0215
Reviewed-on: https://code.wireshark.org/review/9070
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wsutil/filesystem.c')
-rw-r--r-- | wsutil/filesystem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c index 3cfc1b87ee..bfdcef4fe0 100644 --- a/wsutil/filesystem.c +++ b/wsutil/filesystem.c @@ -1960,7 +1960,8 @@ file_exists(const char *fname) return FALSE; } -#ifdef _WIN32 +#if _MSC_VER < 1900 + /* * This is a bit tricky on win32. The st_ino field is documented as: * "The inode, and therefore st_ino, has no meaning in the FAT, ..." |