Patch from Shaheed Haque <srhaque@theiet.org>:
authorJulien Kerihuel <j.kerihuel@openchange.org>
Tue, 6 Mar 2012 11:58:22 +0000 (11:58 +0000)
committerJulien Kerihuel <j.kerihuel@openchange.org>
Tue, 6 Mar 2012 11:58:22 +0000 (11:58 +0000)
nspi_SeekEntries does not update the stored value

libmapi/nspi.c

index feef9035514674ec4dfa1875f1b7d9a50765a7a1..d9b63ae352844f5c293638ce0a77ddff025be6ea 100644 (file)
@@ -379,6 +379,11 @@ _PUBLIC_ enum MAPISTATUS nspi_SeekEntries(struct nspi_context *nspi_ctx,
        OPENCHANGE_RETVAL_IF(!NT_STATUS_IS_OK(status), retval, pStat);
        OPENCHANGE_RETVAL_IF(retval, retval, pStat);
 
+       nspi_ctx->pStat->CurrentRec = r.out.pStat->CurrentRec;
+       nspi_ctx->pStat->Delta = r.out.pStat->Delta;
+       nspi_ctx->pStat->NumPos = r.out.pStat->NumPos;
+       nspi_ctx->pStat->TotalRecs = r.out.pStat->TotalRecs;
+
        return MAPI_E_SUCCESS;
 }