sqlite: Add hack for 32-bit to properly get address of SetDllDirectoryW
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user