summaryrefslogtreecommitdiff
path: root/src/serializerbinary.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-12-18 21:31:10 +0000
committerMike Buland <eichlan@xagasoft.com>2006-12-18 21:31:10 +0000
commit250a90211e1a326ffe640504bc7138349ae2eba5 (patch)
tree810208c5f60e4720110e233e8b5c9927df5afa8e /src/serializerbinary.cpp
parent3efda80a2ab84db53c1c0595492a03a94374cf56 (diff)
downloadlibbu++-250a90211e1a326ffe640504bc7138349ae2eba5.tar.gz
libbu++-250a90211e1a326ffe640504bc7138349ae2eba5.tar.bz2
libbu++-250a90211e1a326ffe640504bc7138349ae2eba5.tar.xz
libbu++-250a90211e1a326ffe640504bc7138349ae2eba5.zip
Fixed another bug...again...damn spry.
Diffstat (limited to 'src/serializerbinary.cpp')
-rw-r--r--src/serializerbinary.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/serializerbinary.cpp b/src/serializerbinary.cpp
index 29e7f4b..1c0bedb 100644
--- a/src/serializerbinary.cpp
+++ b/src/serializerbinary.cpp
@@ -48,6 +48,9 @@ void SerializerBinary::write(const void * pData, int32_t nSize)
48 48
49void SerializerBinary::read(void * pData, int32_t nSize) 49void SerializerBinary::read(void * pData, int32_t nSize)
50{ 50{
51 if( nSize == 0 )
52 return;
53
51 uint32_t nRead = fread(pData, nSize, 1, fhFile); 54 uint32_t nRead = fread(pData, nSize, 1, fhFile);
52 if( nRead < 1 ) 55 if( nRead < 1 )
53 { 56 {