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

Commit

Permalink
Fix the FMU resource path on Win32
Browse files Browse the repository at this point in the history
Do not strip all characters if there is a `:` in the path; only strip
leading `/`.

Belonging to [master]:
  - #2553
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Jul 3, 2018
1 parent d870b3b commit e3f55e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/c/simulation/omc_simulation_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ extern const char* OpenModelica_parseFmuResourcePath(const char *path)
if (0==strncmp(path, "file:", 5)) {
path+=5;
/* Ignore all / except the first one */
while (path[0] && path[1]=='/') {
while (path[0]=='/' && path[1]=='/') {
path++;
}
#if defined(__MINGW32__) || defined(_MSC_VER)
if (strchr(path,':')) {
while (path[0]) {
while (path[0]=='/') {
path++;
}
}
Expand Down

0 comments on commit e3f55e4

Please sign in to comment.