Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | CE fix |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sourceforge |
Files: | files | file ages | folders |
SHA1: |
c3042c21268fb42d4600805f012944c3 |
User & Date: | rmsimpson 2006-10-14 18:03:58.000 |
Context
2006-10-16
| ||
05:47 | 1.0.36.0 check-in: 23f21c105c user: rmsimpson tags: sourceforge | |
2006-10-14
| ||
18:03 | CE fix check-in: c3042c2126 user: rmsimpson tags: sourceforge | |
18:03 | Scan PE headers for CE problems check-in: 06c74a1584 user: rmsimpson tags: sourceforge | |
Changes
Changes to SQLite.Interop/src/loadext.c.
︙ | ︙ | |||
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 | /* ** The windows implementation of shared-library loaders */ #if defined(_WIN32) || defined(WIN32) || defined(__MINGW32__) || defined(__BORLANDC__) # include <windows.h> # define SQLITE_LIBRARY_TYPE HANDLE # define SQLITE_OPEN_LIBRARY(A) LoadLibrary(A) # define SQLITE_FIND_SYMBOL(A,B) GetProcAddress(A,B) # define SQLITE_CLOSE_LIBRARY(A) FreeLibrary(A) #endif /* windows */ /* ** The unix implementation of shared-library loaders */ #if defined(HAVE_DLOPEN) && !defined(SQLITE_LIBRARY_TYPE) | > > > > | 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | /* ** The windows implementation of shared-library loaders */ #if defined(_WIN32) || defined(WIN32) || defined(__MINGW32__) || defined(__BORLANDC__) # include <windows.h> # define SQLITE_LIBRARY_TYPE HANDLE # define SQLITE_OPEN_LIBRARY(A) LoadLibrary(A) #ifdef _WIN32_WCE # define SQLITE_FIND_SYMBOL(A,B) GetProcAddressA(A,B) #else # define SQLITE_FIND_SYMBOL(A,B) GetProcAddress(A,B) #endif # define SQLITE_CLOSE_LIBRARY(A) FreeLibrary(A) #endif /* windows */ /* ** The unix implementation of shared-library loaders */ #if defined(HAVE_DLOPEN) && !defined(SQLITE_LIBRARY_TYPE) |
︙ | ︙ | |||
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | char **pzErrMsg /* Put error message here if not 0 */ ){ #ifdef SQLITE_LIBRARY_TYPE SQLITE_LIBRARY_TYPE handle; int (*xInit)(sqlite3*,char**,const sqlite3_api_routines*); char *zErrmsg = 0; SQLITE_LIBRARY_TYPE *aHandle; /* Ticket #1863. To avoid a creating security problems for older ** applications that relink against newer versions of SQLite, the ** ability to run load_extension is turned off by default. One ** must call sqlite3_enable_load_extension() to turn on extension ** loading. Otherwise you get the following error. */ if( (db->flags & SQLITE_LoadExtension)==0 ){ if( pzErrMsg ){ *pzErrMsg = sqlite3_mprintf("not authorized"); } return SQLITE_ERROR; } if( zProc==0 ){ zProc = "sqlite3_extension_init"; } handle = SQLITE_OPEN_LIBRARY(zFile); if( handle==0 ){ if( pzErrMsg ){ *pzErrMsg = sqlite3_mprintf("unable to open shared library [%s]", zFile); } return SQLITE_ERROR; } xInit = (int(*)(sqlite3*,char**,const sqlite3_api_routines*)) | > > > > > > > > > | 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | char **pzErrMsg /* Put error message here if not 0 */ ){ #ifdef SQLITE_LIBRARY_TYPE SQLITE_LIBRARY_TYPE handle; int (*xInit)(sqlite3*,char**,const sqlite3_api_routines*); char *zErrmsg = 0; SQLITE_LIBRARY_TYPE *aHandle; #ifdef _WIN32_WCE WCHAR zWideFile[MAX_PATH]; MultiByteToWideChar(CP_ACP, 0, zFile, -1, zWideFile, MAX_PATH); #endif /* Ticket #1863. To avoid a creating security problems for older ** applications that relink against newer versions of SQLite, the ** ability to run load_extension is turned off by default. One ** must call sqlite3_enable_load_extension() to turn on extension ** loading. Otherwise you get the following error. */ if( (db->flags & SQLITE_LoadExtension)==0 ){ if( pzErrMsg ){ *pzErrMsg = sqlite3_mprintf("not authorized"); } return SQLITE_ERROR; } if( zProc==0 ){ zProc = "sqlite3_extension_init"; } #ifdef _WIN32_WCE handle = SQLITE_OPEN_LIBRARY(zWideFile); #else handle = SQLITE_OPEN_LIBRARY(zFile); #endif if( handle==0 ){ if( pzErrMsg ){ *pzErrMsg = sqlite3_mprintf("unable to open shared library [%s]", zFile); } return SQLITE_ERROR; } xInit = (int(*)(sqlite3*,char**,const sqlite3_api_routines*)) |
︙ | ︙ |