diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-12-18 21:31:10 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-12-18 21:31:10 +0000 |
commit | 250a90211e1a326ffe640504bc7138349ae2eba5 (patch) | |
tree | 810208c5f60e4720110e233e8b5c9927df5afa8e | |
parent | 3efda80a2ab84db53c1c0595492a03a94374cf56 (diff) | |
download | libbu++-250a90211e1a326ffe640504bc7138349ae2eba5.tar.gz libbu++-250a90211e1a326ffe640504bc7138349ae2eba5.tar.bz2 libbu++-250a90211e1a326ffe640504bc7138349ae2eba5.tar.xz libbu++-250a90211e1a326ffe640504bc7138349ae2eba5.zip |
Fixed another bug...again...damn spry.
-rw-r--r-- | src/serializerbinary.cpp | 3 |
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 | ||
49 | void SerializerBinary::read(void * pData, int32_t nSize) | 49 | void 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 | { |