From 250a90211e1a326ffe640504bc7138349ae2eba5 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 18 Dec 2006 21:31:10 +0000 Subject: Fixed another bug...again...damn spry. --- src/serializerbinary.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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) void SerializerBinary::read(void * pData, int32_t nSize) { + if( nSize == 0 ) + return; + uint32_t nRead = fread(pData, nSize, 1, fhFile); if( nRead < 1 ) { -- cgit v1.2.3