activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1078327 - /activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_BytesMessage.cpp
Date Sat, 05 Mar 2011 18:38:30 GMT
Author: tabish
Date: Sat Mar  5 18:38:30 2011
New Revision: 1078327

URL: http://svn.apache.org/viewvc?rev=1078327&view=rev
Log:
Fix for: https://issues.apache.org/jira/browse/AMQCPP-357

Modified:
    activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_BytesMessage.cpp

Modified: activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_BytesMessage.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_BytesMessage.cpp?rev=1078327&r1=1078326&r2=1078327&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_BytesMessage.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-c/src/main/c/CMS_BytesMessage.cpp Sat Mar  5 18:38:30
2011
@@ -525,7 +525,7 @@ cms_status readBytesFromBytesMessage(CMS
 
             int readCount = bytesMessage->readBytes(value, size);
 
-            if( readCount != -1 ) {
+            if( readCount == -1 ) {
                 result = CMS_INCOMPLETE_READ;
             }
 



Mime
View raw message