mirror of
https://github.com/sqlite/sqlite.git
synced 2025-10-25 20:58:26 +03:00
Use GetProcAddressA() on wince. Ticket #2123 (CVS 3543)
FossilOrigin-Name: e3dddd1cef5877c009852fd7f484973843e26e00
This commit is contained in:
@@ -1516,7 +1516,7 @@ void *sqlite3WinDlopen(const char *zFilename){
|
||||
h = LoadLibraryW(zConverted);
|
||||
}else{
|
||||
#if OS_WINCE
|
||||
return SQLITE_NOMEM;
|
||||
return 0;
|
||||
#else
|
||||
h = LoadLibraryA(zConverted);
|
||||
#endif
|
||||
@@ -1526,7 +1526,14 @@ void *sqlite3WinDlopen(const char *zFilename){
|
||||
|
||||
}
|
||||
void *sqlite3WinDlsym(void *pHandle, const char *zSymbol){
|
||||
#if OS_WINCE
|
||||
/* The GetProcAddressA() routine is only available on wince. */
|
||||
return GetProcAddressA((HANDLE)pHandle, zSymbol);
|
||||
#else
|
||||
/* All other windows platforms expect GetProcAddress() to take
|
||||
** an Ansi string regardless of the _UNICODE setting */
|
||||
return GetProcAddress((HANDLE)pHandle, zSymbol);
|
||||
#endif
|
||||
}
|
||||
int sqlite3WinDlclose(void *pHandle){
|
||||
return FreeLibrary((HANDLE)pHandle);
|
||||
|
||||
Reference in New Issue
Block a user