Mercurial > mxe-octave
changeset 6843:c4e795606e6c
* installer-files/octave-launch.c: check if short name worked
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Thu, 24 Aug 2023 09:37:02 -0400 |
parents | cb939ded70d5 |
children | 1dd676053fb2 |
files | installer-files/octave-launch.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/installer-files/octave-launch.c Thu Aug 24 09:36:56 2023 -0400 +++ b/installer-files/octave-launch.c Thu Aug 24 09:37:02 2023 -0400 @@ -127,7 +127,7 @@ paths */ /* FIXME: This won't help on systems with de-activated short paths. */ nSize = GetShortPathNameW (path, rootpath, PATH_SZ-1); - if (nSize == 0) + if (nSize == 0 || PathFileExistsW(rootpath) == FALSE) StringCchCopyW (rootpath, PATH_SZ, path); #endif