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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user