From d05ab10173c49ec80a701a037dc71f0f8a3711c9 Mon Sep 17 00:00:00 2001 From: Chuck Ries Date: Thu, 7 Apr 2016 16:26:57 -0700 Subject: [PATCH] Fix error return in getPath The call to PathCharString.Set returns true on succes, so this code path was returning false if it succeeded in setting lpPathFileName to lpFileNameString. It looks like this is just a holdover from the way this code used to be written. --- src/pal/src/thread/process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pal/src/thread/process.cpp b/src/pal/src/thread/process.cpp index 593070c..0de235e 100644 --- a/src/pal/src/thread/process.cpp +++ b/src/pal/src/thread/process.cpp @@ -4296,7 +4296,7 @@ getPath( { if (access (lpFileName, F_OK) == 0) { - if (lpPathFileName.Set(lpFileNameString)) + if (!lpPathFileName.Set(lpFileNameString)) { TRACE("Set of StackString failed!\n"); return FALSE; -- 2.7.4