I am reverting fix, because it de facto breaks the code. Using get_included_files() before this commit causes segmentation fault.
这个提交包含在:
父节点
910cf9646a
当前提交
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) {
|
||||
#ifdef __WINNT__
|
||||
if(GetFullPathName(zPath, PATH_MAX, *fPath, NULL) != 0) {
|
||||
if(GetFullPathName(zPath, PATH_MAX, fPath, NULL) != 0) {
|
||||
#else
|
||||
if(realpath(zPath, *fPath) == NULL) {
|
||||
if(realpath(zPath, fPath) == NULL) {
|
||||
#endif
|
||||
return PH7_IO_ERR;
|
||||
}
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户