changeset 524:d80376e73f52

fix of issue #8
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Sep 2013 17:48:00 +0200
parents 2c739f76d0bb
children d47ae896a754
files NEWS OrthancServer/Internals/StoreScp.cpp
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Thu Aug 29 14:50:23 2013 +0200
+++ b/NEWS	Tue Sep 10 17:48:00 2013 +0200
@@ -4,6 +4,7 @@
 * Detection of stable patients/studies/series
 * C-Find SCU at the instance level
 * Link from modified to original resource in Orthanc Explorer
+* Fix of issue #8
 
 
 Version 0.6.0 (2013/07/16)
--- a/OrthancServer/Internals/StoreScp.cpp	Thu Aug 29 14:50:23 2013 +0200
+++ b/OrthancServer/Internals/StoreScp.cpp	Tue Sep 10 17:48:00 2013 +0200
@@ -117,7 +117,7 @@
             FromDcmtkBridge::Convert(summary, **imageDataSet);
             FromDcmtkBridge::ToJson(dicomJson, **imageDataSet);       
 
-            if (FromDcmtkBridge::SaveToMemoryBuffer(buffer, *imageDataSet) < 0)
+            if (!FromDcmtkBridge::SaveToMemoryBuffer(buffer, *imageDataSet))
             {
               LOG(ERROR) << "cannot write DICOM file to memory";
               rsp->DimseStatus = STATUS_STORE_Refused_OutOfResources;