# HG changeset patch # User Sascha Wilde # Date 1395750023 -3600 # Node ID 701b7036c5dcdab352379c75ecfd47e6f9930bcf # Parent f100861dad8f3f1f87e900a5f9cbdffbb4046f6e Windows implementation of port_realpath: NULL if file does not exist. diff -r f100861dad8f -r 701b7036c5dc common/portpath.c --- a/common/portpath.c Tue Mar 25 13:08:59 2014 +0100 +++ b/common/portpath.c Tue Mar 25 13:20:23 2014 +0100 @@ -31,7 +31,11 @@ #ifndef _WIN32 return realpath(path, NULL); #else - return _fullpath(NULL, path, 0); + char *fp = _fullpath(NULL, path, 0); + if (port_fileexits(fp)) + return fp; + else + return NULL; #endif }