Author: weiden
Date: Fri Aug 3 14:23:19 2007
New Revision: 28122
URL:
http://svn.reactos.org/svn/reactos?rev=28122&view=rev
Log:
Revert r28121 as it removes an optimization
Modified:
trunk/reactos/lib/inflib/infput.c
Modified: trunk/reactos/lib/inflib/infput.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/inflib/infput.c?rev=28…
==============================================================================
--- trunk/reactos/lib/inflib/infput.c (original)
+++ trunk/reactos/lib/inflib/infput.c Fri Aug 3 14:23:19 2007
@@ -43,8 +43,8 @@
DPRINT("Out of free space. TotalSize %lu FreeSize %lu Length %u\n",
OutBuf->TotalSize, OutBuf->FreeSize, Length);
/* Round up to next SIZE_INC */
- NewSize = OutBuf->TotalSize - OutBuf->FreeSize +
- (((Length + 1) + (SIZE_INC - 1)) /
+ NewSize = OutBuf->TotalSize +
+ (((Length + 1) - OutBuf->FreeSize + (SIZE_INC - 1)) /
SIZE_INC) * SIZE_INC;
DPRINT("NewSize %lu\n", NewSize);
NewBuf = MALLOC(NewSize);