comparison OrthancServer/ServerIndex.cpp @ 701:f9052558eada

fix attachment
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Feb 2014 14:30:56 +0100
parents 2929e17f8447
children 7592a48e97e4
comparison
equal deleted inserted replaced
700:0fe6632864b9 701:f9052558eada
817 { 817 {
818 boost::mutex::scoped_lock lock(mutex_); 818 boost::mutex::scoped_lock lock(mutex_);
819 819
820 int64_t id; 820 int64_t id;
821 ResourceType type; 821 ResourceType type;
822 if (!db_->LookupResource(instanceUuid, id, type) || 822 if (!db_->LookupResource(instanceUuid, id, type))
823 type != ResourceType_Instance)
824 { 823 {
825 throw OrthancException(ErrorCode_InternalError); 824 throw OrthancException(ErrorCode_InternalError);
826 } 825 }
827 826
828 if (db_->LookupAttachment(attachment, id, contentType)) 827 if (db_->LookupAttachment(attachment, id, contentType))