aboutsummaryrefslogtreecommitdiff
path: root/src/os_win.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-11-07 00:06:18 +0000
committerdrh <drh@noemail.net>2008-11-07 00:06:18 +0000
commit4c17c3fb115c10c744b710c91177f7090ae2ecb9 (patch)
tree949f60865c5c609c7944703663fb628bb93605f5 /src/os_win.c
parent1735fa8892b658988b1e92a4bc96627ca53510c5 (diff)
downloadsqlite-4c17c3fb115c10c744b710c91177f7090ae2ecb9.tar.gz
sqlite-4c17c3fb115c10c744b710c91177f7090ae2ecb9.zip
Add documentation to make it clear that short reads from xRead in the VFS
must be zero-filled. (CVS 5867) FossilOrigin-Name: fb311d6f4098a08f05b3fac9a2a7e2a53c38bb5f
Diffstat (limited to 'src/os_win.c')
-rw-r--r--src/os_win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os_win.c b/src/os_win.c
index 502f8ab8c..f09b69861 100644
--- a/src/os_win.c
+++ b/src/os_win.c
@@ -12,7 +12,7 @@
**
** This file contains code that is specific to windows.
**
-** $Id: os_win.c,v 1.136 2008/10/22 16:55:47 shane Exp $
+** $Id: os_win.c,v 1.137 2008/11/07 00:06:18 drh Exp $
*/
#include "sqliteInt.h"
#if SQLITE_OS_WIN /* This file is used for windows only */
@@ -666,6 +666,7 @@ static int winRead(
if( got==(DWORD)amt ){
return SQLITE_OK;
}else{
+ /* Unread parts of the buffer must be zero-filled */
memset(&((char*)pBuf)[got], 0, amt-got);
return SQLITE_IOERR_SHORT_READ;
}