sqlite: Add hack for 32-bit to properly get address of SetDllDirectoryW

This commit is contained in:
Alexpux committed 2014-11-08 22:33:03 +03:00
1 parent 3a181c50a9
commit 690efeaada
4 files changed
+71 -29

No files matched your search

+1 -5
View File
@@ -11405,7 +11405,7 @@
if( pzErrMsg ) *pzErrMsg = 0;
@@ -100426,14 +100945,30 @@ static int sqlite3LoadExtension(
@@ -100426,14 +100945,26 @@ static int sqlite3LoadExtension(
zEntry = zProc ? zProc : "sqlite3_extension_init";
handle = sqlite3OsDlOpen(pVfs, zFile);
@@ -11426,11 +11426,7 @@
+ sqlite3_free(zAltFile);
+ }
+ if( handle==0 ){
+#ifdef __MSYS__
+ zAltFile = sqlite3_mprintf("msys-sqlite3%s-0.%s", zFile, azEnding);
+#else
+ zAltFile = sqlite3_mprintf("cygsqlite3%s-0.%s", zFile, azEnding);
+#endif
+ if( zAltFile==0 ) return SQLITE_NOMEM;
+ handle = sqlite3OsDlOpen(pVfs, zAltFile);
+ sqlite3_free(zAltFile);