Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit fbe04ad

Browse files
Merge branch 'develop-6.7' of https://github.com/runrev/livecode into develop-6.7-gyp
2 parents 3ecdf27 + 79a22b7 commit fbe04ad

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

engine/src/dispatch.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,9 @@ IO_stat MCDispatch::loadfile(const char *inname, MCStack *&sptr)
877877
if ((stream = MCS_open(fname, IO_READ_MODE, True, False, 0)) != NULL)
878878
// SN-20015-06-01: [[ Bug 15432 ]] We want to use MCS_resolvepath to
879879
// keep consistency and let '~' be resolved as it is in MCS_open
880-
openpath = MCS_resolvepath(fname);
880+
// MCS_resolve_path leaves a backslash-delimited path on Windows,
881+
// and MCS_get_canonical_path is made to cope with this.
882+
openpath = MCS_get_canonical_path(fname);
881883
else
882884
{
883885
char *tmparray = new char[strlen(fname) + 1];
@@ -890,7 +892,9 @@ IO_stat MCDispatch::loadfile(const char *inname, MCStack *&sptr)
890892
if ((stream = MCS_open(tname, IO_READ_MODE, True, False, 0)) != NULL)
891893
// SN-20015-06-01: [[ Bug 15432 ]] We want to use MCS_resolvepath to
892894
// keep consistency and let '~' be resolved as it is in MCS_open
893-
openpath = MCS_resolvepath(tname);
895+
// MCS_resolve_path leaves a backslash-delimited path on Windows,
896+
// and MCS_get_canonical_path is made to cope with this.
897+
openpath = MCS_get_canonical_path(tname);
894898
else
895899
{
896900
if (!openstartup(tname, &openpath, stream)

0 commit comments

Comments
 (0)