/ Check-in [ea1d76e3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a harmless typo in the PRNG initialization on win32. Ticket #2617. (CVS 4405)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ea1d76e3fae599f7197f32852f1722b61ae3f8a7
User & Date: drh 2007-09-05 17:06:03
Context
2007-09-05
22:28
Fix temp file handling for OS/2 so that trailing slashes or backslashes are stripped off the path gotten from the environment. Otherwise full paths might contain multiple slashes which causes opening of files to fail. (CVS 4406) check-in: 96aa96ac user: pweilbacher tags: trunk
17:06
Fix a harmless typo in the PRNG initialization on win32. Ticket #2617. (CVS 4405) check-in: ea1d76e3 user: drh tags: trunk
16:54
Fix error handling (malloc and io errors) in the asynchronous backend. (CVS 4404) check-in: 80a44382 user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

  1434   1434   
  1435   1435   
  1436   1436   /*
  1437   1437   ** Write up to nBuf bytes of randomness into zBuf.
  1438   1438   */
  1439   1439   static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
  1440   1440     int n = 0;
  1441         -  if( sizeof(LPSYSTEMTIME)<=nBuf-n ){
         1441  +  if( sizeof(SYSTEMTIME)<=nBuf-n ){
  1442   1442       SYSTEMTIME x;
  1443   1443       GetSystemTime(&x);
  1444   1444       memcpy(&zBuf[n], &x, sizeof(x));
  1445   1445       n += sizeof(x);
  1446   1446     }
  1447   1447     if( sizeof(DWORD)<=nBuf-n ){
  1448   1448       DWORD pid = GetCurrentProcessId();