/ Check-in [e3dddd1c]
Login

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

Overview
Comment:Use GetProcAddressA() on wince. Ticket #2123 (CVS 3543)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:e3dddd1cef5877c009852fd7f484973843e26e00
User & Date: drh 2006-12-21 02:21:57
Context
2006-12-21
03:20
More fixes to the microsoft code-page nightmare... (CVS 3544) check-in: 0b47d880 user: drh tags: trunk
02:21
Use GetProcAddressA() on wince. Ticket #2123 (CVS 3543) check-in: e3dddd1c user: drh tags: trunk
01:37
Reduce the number of utf8->unicode conversions required in wince. Ticket #2122 (CVS 3542) check-in: 6d2ff096 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

  1512   1512     if( zConverted==0 ){
  1513   1513       return 0;
  1514   1514     }
  1515   1515     if( isNT() ){
  1516   1516       h = LoadLibraryW(zConverted);
  1517   1517     }else{
  1518   1518   #if OS_WINCE
  1519         -    return SQLITE_NOMEM;
         1519  +    return 0;
  1520   1520   #else
  1521   1521       h = LoadLibraryA(zConverted);
  1522   1522   #endif
  1523   1523     }
  1524   1524     sqliteFree(zConverted);
  1525   1525     return (void*)h;
  1526   1526     
  1527   1527   }
  1528   1528   void *sqlite3WinDlsym(void *pHandle, const char *zSymbol){
         1529  +#if OS_WINCE
         1530  +  /* The GetProcAddressA() routine is only available on wince. */
         1531  +  return GetProcAddressA((HANDLE)pHandle, zSymbol);
         1532  +#else
         1533  +  /* All other windows platforms expect GetProcAddress() to take
         1534  +  ** an Ansi string regardless of the _UNICODE setting */
  1529   1535     return GetProcAddress((HANDLE)pHandle, zSymbol);
         1536  +#endif
  1530   1537   }
  1531   1538   int sqlite3WinDlclose(void *pHandle){
  1532   1539     return FreeLibrary((HANDLE)pHandle);
  1533   1540   }
  1534   1541   #endif /* !SQLITE_OMIT_LOAD_EXTENSION */
  1535   1542   
  1536   1543   /*