changeset 1016:b1d22289af24

Comments.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 01 Mar 2015 04:46:41 +0200
parents 5101766dd95c
children 6436d80ae0fc
files src/dmres.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dmres.c	Sun Mar 01 04:46:23 2015 +0200
+++ b/src/dmres.c	Sun Mar 01 04:46:41 2015 +0200
@@ -395,12 +395,14 @@
     Uint8 *inBuf = NULL;
     int ret;
 
+    // Allocate buuffer for compressed data
     if ((inBuf = dmMalloc(node->length)) == NULL)
     {
         ret = DMERR_MALLOC;
         goto out;
     }
 
+    // Read compressed data
     if (fread(inBuf, sizeof(Uint8), node->length, handle->lib->packFile->file) != node->length)
     {
         ret = DMERR_FREAD;
@@ -414,6 +416,7 @@
         goto out;
     }
 
+    // Initialize decompression structures
     ctx.zbuffer    = inBuf;
     ctx.zbufferEnd = inBuf + node->length;
     ctx.zoutEnd    = ctx.zoutStart + node->size;