Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit e3f55e4

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Fix the FMU resource path on Win32
Do not strip all characters if there is a `:` in the path; only strip leading `/`. Belonging to [master]: - #2553
1 parent d870b3b commit e3f55e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SimulationRuntime/c/simulation/omc_simulation_util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ extern const char* OpenModelica_parseFmuResourcePath(const char *path)
4545
if (0==strncmp(path, "file:", 5)) {
4646
path+=5;
4747
/* Ignore all / except the first one */
48-
while (path[0] && path[1]=='/') {
48+
while (path[0]=='/' && path[1]=='/') {
4949
path++;
5050
}
5151
#if defined(__MINGW32__) || defined(_MSC_VER)
5252
if (strchr(path,':')) {
53-
while (path[0]) {
53+
while (path[0]=='/') {
5454
path++;
5555
}
5656
}

0 commit comments

Comments
 (0)