From 32dde878536448b14e356c2fadc57f9b34414d87 Mon Sep 17 00:00:00 2001 From: Piotr Likoski Date: Sat, 18 Aug 2018 15:33:17 +0200 Subject: [PATCH] Reverting fix I am reverting fix, because it de facto breaks the code. Using get_included_files() before this commit causes segmentation fault. --- engine/lib/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/lib/utils.c b/engine/lib/utils.c index f977048..318bf14 100644 --- a/engine/lib/utils.c +++ b/engine/lib/utils.c @@ -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; }