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

Fix typo in Win32 VFS code enabled when the SQLITE_WIN32_USE_UUID compile-time option is used.

FossilOrigin-Name: b33f1bacfdb34fe66b7b073e68bfac38498d6e88
This commit is contained in:
mistachkin
2015-05-12 19:53:15 +00:00
parent 8755a5f50c
commit ba02a63a4a
3 changed files with 10 additions and 10 deletions

View File

@@ -5411,14 +5411,14 @@ static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
UUID id;
memset(&id, 0, sizeof(UUID));
osUuidCreate(&id);
memcpy(zBuf, &id, sizeof(UUID));
memcpy(&zBuf[n], &id, sizeof(UUID));
n += sizeof(UUID);
}
if( sizeof(UUID)<=nBuf-n ){
UUID id;
memset(&id, 0, sizeof(UUID));
osUuidCreateSequential(&id);
memcpy(zBuf, &id, sizeof(UUID));
memcpy(&zBuf[n], &id, sizeof(UUID));
n += sizeof(UUID);
}
#endif