Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Engine/OrthancPlugins.cpp @ 4912:45d6ce72a84e
fix linking of Sanitizer sample plugin
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Feb 2022 17:46:28 +0100 |
parents | df86d2505df8 |
children | c1b19f95e166 |
comparison
equal
deleted
inserted
replaced
4911:0acc49da84ab | 4912:45d6ce72a84e |
---|---|
68 #include <boost/regex.hpp> | 68 #include <boost/regex.hpp> |
69 #include <dcmtk/dcmdata/dcdict.h> | 69 #include <dcmtk/dcmdata/dcdict.h> |
70 #include <dcmtk/dcmdata/dcdicent.h> | 70 #include <dcmtk/dcmdata/dcdicent.h> |
71 #include <dcmtk/dcmnet/dimse.h> | 71 #include <dcmtk/dcmnet/dimse.h> |
72 | 72 |
73 #define ERROR_MESSAGE_64BIT "A 64bit version of the Orthanc SDK is necessary to use buffers > 4GB and it is currently not available !" | 73 #define ERROR_MESSAGE_64BIT "A 64bit version of the Orthanc SDK is necessary to use buffers > 4GB, but is currently not available" |
74 | 74 |
75 | 75 |
76 namespace Orthanc | 76 namespace Orthanc |
77 { | 77 { |
78 static void CopyToMemoryBuffer(OrthancPluginMemoryBuffer& target, | 78 static void CopyToMemoryBuffer(OrthancPluginMemoryBuffer& target, |
2322 free(modifiedDicomBufferData); | 2322 free(modifiedDicomBufferData); |
2323 throw OrthancException(ErrorCode_Plugin, "The ReceivedInstanceCallback plugin is returning a modified buffer while it has not modified the instance"); | 2323 throw OrthancException(ErrorCode_Plugin, "The ReceivedInstanceCallback plugin is returning a modified buffer while it has not modified the instance"); |
2324 } | 2324 } |
2325 return true; | 2325 return true; |
2326 } | 2326 } |
2327 else if (callbackResult == OrthancPluginReceivedInstanceCallbackResult_Modified) | 2327 else if (callbackResult == OrthancPluginReceivedInstanceCallbackResult_Modify) |
2328 { | 2328 { |
2329 if (modifiedDicomSize64 > 0 && modifiedDicomBufferData != NULL) | 2329 if (modifiedDicomSize64 > 0 && modifiedDicomBufferData != NULL) |
2330 { | 2330 { |
2331 if (static_cast<size_t>(modifiedDicomSize64) != modifiedDicomSize64) // Orthanc is running in 32bits and has received a > 4GB buffer | 2331 if (static_cast<size_t>(modifiedDicomSize64) != modifiedDicomSize64) // Orthanc is running in 32bits and has received a > 4GB buffer |
2332 { | 2332 { |