/ Check-in [fd222176]
Login

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

Overview
Comment:Modify GetVersionEx Win32 VFS fix for use with the test suite.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: fd2221768b45d9006bbb2919a4977cf2791826d6
User & Date: mistachkin 2014-08-11 17:51:23
Context
2014-08-12
01:23
Fix an assert() statement in the SELECT code generator that was incorrect following an OOM error. check-in: a179e41e user: drh tags: trunk
2014-08-11
17:51
Modify GetVersionEx Win32 VFS fix for use with the test suite. check-in: fd222176 user: mistachkin tags: trunk
17:41
Further clarification and typo fixes for the previous comment change. check-in: 87ef9e2f user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

  1328   1328       OSVERSIONINFOA sInfo;
  1329   1329       sInfo.dwOSVersionInfoSize = sizeof(sInfo);
  1330   1330       osGetVersionExA(&sInfo);
  1331   1331   #endif
  1332   1332       osInterlockedCompareExchange(&sqlite3_os_type,
  1333   1333           (sInfo.dwPlatformId == VER_PLATFORM_WIN32_NT) ? 2 : 1, 0);
  1334   1334     }
         1335  +  return osInterlockedCompareExchange(&sqlite3_os_type, 2, 2)==2;
         1336  +#elif SQLITE_TEST
  1335   1337     return osInterlockedCompareExchange(&sqlite3_os_type, 2, 2)==2;
  1336   1338   #else
  1337   1339     return 1;
  1338   1340   #endif
  1339   1341   }
  1340   1342   
  1341   1343   #ifdef SQLITE_WIN32_MALLOC