# HG changeset patch # User Sebastien Jodogne # Date 1442835230 -7200 # Node ID 0d074f5f6069f14f2b45b6826d0253605c69e744 # Parent ffd23c0104af9b12620f8ad04bd503a69c38184b fix diff -r ffd23c0104af -r 0d074f5f6069 OrthancServer/OrthancRestApi/OrthancRestSystem.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Mon Sep 21 13:26:45 2015 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Mon Sep 21 13:33:50 2015 +0200 @@ -69,12 +69,14 @@ if (plugins.HasStorageArea()) { - result["StorageAreaPlugin"] = plugins.GetStorageAreaLibrary().GetPath(); + std::string p = plugins.GetStorageAreaLibrary().GetPath(); + result["StorageAreaPlugin"] = boost::filesystem::canonical(p).string(); } if (plugins.HasDatabaseBackend()) { - result["DatabaseBackendPlugin"] = plugins.GetDatabaseBackendLibrary().GetPath(); + std::string p = plugins.GetDatabaseBackendLibrary().GetPath(); + result["DatabaseBackendPlugin"] = boost::filesystem::canonical(p).string(); } call.GetOutput().AnswerJson(result); diff -r ffd23c0104af -r 0d074f5f6069 Plugins/Engine/SharedLibrary.cpp --- a/Plugins/Engine/SharedLibrary.cpp Mon Sep 21 13:26:45 2015 +0200 +++ b/Plugins/Engine/SharedLibrary.cpp Mon Sep 21 13:33:50 2015 +0200 @@ -48,10 +48,10 @@ namespace Orthanc { - SharedLibrary::SharedLibrary(const std::string& path) : handle_(NULL) + SharedLibrary::SharedLibrary(const std::string& path) : + path_(path), + handle_(NULL) { - path_ = boost::filesystem::canonical(path).string(); - #if defined(_WIN32) handle_ = ::LoadLibraryA(path_.c_str()); if (handle_ == NULL)