1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-15 11:41:13 +03:00

Fix a harmless typo in the PRNG initialization on win32. Ticket #2617. (CVS 4405)

FossilOrigin-Name: ea1d76e3fae599f7197f32852f1722b61ae3f8a7
This commit is contained in:
drh
2007-09-05 17:06:03 +00:00
parent 7a4252b2bb
commit 8674261a8f
3 changed files with 9 additions and 9 deletions

View File

@@ -1438,7 +1438,7 @@ void winDlClose(sqlite3_vfs *pVfs, void *pHandle){
*/
static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
int n = 0;
if( sizeof(LPSYSTEMTIME)<=nBuf-n ){
if( sizeof(SYSTEMTIME)<=nBuf-n ){
SYSTEMTIME x;
GetSystemTime(&x);
memcpy(&zBuf[n], &x, sizeof(x));