System.Data.SQLite
Check-in [76637ea284]
Not logged in

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

Overview
Comment:Fix compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | vs2012
Files: files | file ages | folders
SHA1: 76637ea2842f978985a56c6776b9a6a908934c20
User & Date: mistachkin 2012-09-14 09:14:09
Context
2012-09-14
09:15
Workaround compiler warnings in the SQLite core library. check-in: f75845d9b9 user: mistachkin tags: vs2012
09:14
Fix compiler warning. check-in: 76637ea284 user: mistachkin tags: vs2012
09:11
Fix conditions on the strong name targets. check-in: 50c649a956 user: mistachkin tags: vs2012
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to SQLite.Interop/src/win/crypt.c.

137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
}

// Encrypt/Decrypt functionality, called by pager.c
void * sqlite3Codec(void *pArg, void *data, Pgno nPageNum, int nMode)
{
  LPCRYPTBLOCK pBlock = (LPCRYPTBLOCK)pArg;
  DWORD dwPageSize;
  LPVOID pvTemp;

  if (!pBlock) return data;
  if (pBlock->pvCrypt == NULL) return NULL; // This only happens if CreateCryptBlock() failed to make scratch space

  switch(nMode)
  {
  case 0: // Undo a "case 7" journal file encryption







|







137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
}

// Encrypt/Decrypt functionality, called by pager.c
void * sqlite3Codec(void *pArg, void *data, Pgno nPageNum, int nMode)
{
  LPCRYPTBLOCK pBlock = (LPCRYPTBLOCK)pArg;
  DWORD dwPageSize;
  LPVOID pvTemp = NULL;

  if (!pBlock) return data;
  if (pBlock->pvCrypt == NULL) return NULL; // This only happens if CreateCryptBlock() failed to make scratch space

  switch(nMode)
  {
  case 0: // Undo a "case 7" journal file encryption