Mercurial > hg > orthanc
changeset 6290:9ff90f4a5fd0
fix
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Thu, 28 Aug 2025 20:14:15 +0200 |
parents | 22ddac5de96e |
children | 04a31dbf8a60 |
files | OrthancFramework/Sources/SystemToolbox.cpp OrthancFramework/Sources/SystemToolbox.h OrthancServer/Plugins/Engine/OrthancPlugins.cpp |
diffstat | 3 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/SystemToolbox.cpp Thu Aug 28 19:09:53 2025 +0200 +++ b/OrthancFramework/Sources/SystemToolbox.cpp Thu Aug 28 20:14:15 2025 +0200 @@ -338,7 +338,7 @@ const std::string& path, bool callFsync) { - WriteFile(content, size, path, callFsync); + WriteFile(content, size, boost::filesystem::path(path), callFsync); } void SystemToolbox::WriteFile(const void *content, @@ -716,7 +716,7 @@ bool SystemToolbox::IsRegularFile(const std::string& path) { - return SystemToolbox::IsRegularFile(path); + return IsRegularFile(boost::filesystem::path(path)); }
--- a/OrthancFramework/Sources/SystemToolbox.h Thu Aug 28 19:09:53 2025 +0200 +++ b/OrthancFramework/Sources/SystemToolbox.h Thu Aug 28 20:14:15 2025 +0200 @@ -73,10 +73,10 @@ const std::string& path, bool callFsync); - static void WriteFile(const void *content, - size_t size, - const boost::filesystem::path &path, - bool callFsync); // this variant is mandatory to handle non ASCII-only path on Windows + static void WriteFile(const void *content, + size_t size, + const boost::filesystem::path &path, + bool callFsync); // this variant is mandatory to handle non ASCII-only path on Windows static void WriteFile(const void* content, size_t size,
--- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Thu Aug 28 19:09:53 2025 +0200 +++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Thu Aug 28 20:14:15 2025 +0200 @@ -5233,7 +5233,7 @@ { const _OrthancPluginWriteFile& p = *reinterpret_cast<const _OrthancPluginWriteFile*>(parameters); - SystemToolbox::WriteFile(p.data, p.size, p.path, true /* run fsync() */); + SystemToolbox::WriteFile(p.data, p.size, boost::filesystem::path(p.path), true /* run fsync() */); return true; }