I am reverting fix, because it de facto breaks the code. Using get_included_files() before this commit causes segmentation fault.
This commit is contained in:
parent
910cf9646a
commit
32dde87853
|
@ -634,9 +634,9 @@ PH7_PRIVATE sxi32 SyStrToReal(const char *zSrc, sxu32 nLen, void *pOutVal, const
|
||||||
}
|
}
|
||||||
PH7_PRIVATE sxi32 SyRealPath(const char *zPath, char **fPath) {
|
PH7_PRIVATE sxi32 SyRealPath(const char *zPath, char **fPath) {
|
||||||
#ifdef __WINNT__
|
#ifdef __WINNT__
|
||||||
if(GetFullPathName(zPath, PATH_MAX, *fPath, NULL) != 0) {
|
if(GetFullPathName(zPath, PATH_MAX, fPath, NULL) != 0) {
|
||||||
#else
|
#else
|
||||||
if(realpath(zPath, *fPath) == NULL) {
|
if(realpath(zPath, fPath) == NULL) {
|
||||||
#endif
|
#endif
|
||||||
return PH7_IO_ERR;
|
return PH7_IO_ERR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user