From 9c0a471d6aa6822bff9470f0b942e0389d3986d2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 18 Dec 2006 21:33:47 +0000 Subject: Again? --- src/serializerbinary.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/serializerbinary.cpp') diff --git a/src/serializerbinary.cpp b/src/serializerbinary.cpp index 1c0bedb..ea7ed93 100644 --- a/src/serializerbinary.cpp +++ b/src/serializerbinary.cpp @@ -43,6 +43,9 @@ void SerializerBinary::close() void SerializerBinary::write(const void * pData, int32_t nSize) { + if( nSize == 0 ) + return; + fwrite(pData, nSize, 1, fhFile); } -- cgit v1.2.3