/ 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 Unified Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528






1529

1530
1531
1532
1533
1534
1535
1536
  if( zConverted==0 ){
    return 0;
  }
  if( isNT() ){
    h = LoadLibraryW(zConverted);
  }else{
#if OS_WINCE
    return SQLITE_NOMEM;
#else
    h = LoadLibraryA(zConverted);
#endif
  }
  sqliteFree(zConverted);
  return (void*)h;
  
}
void *sqlite3WinDlsym(void *pHandle, const char *zSymbol){






  return GetProcAddress((HANDLE)pHandle, zSymbol);

}
int sqlite3WinDlclose(void *pHandle){
  return FreeLibrary((HANDLE)pHandle);
}
#endif /* !SQLITE_OMIT_LOAD_EXTENSION */

/*







|









>
>
>
>
>
>

>







1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
  if( zConverted==0 ){
    return 0;
  }
  if( isNT() ){
    h = LoadLibraryW(zConverted);
  }else{
#if OS_WINCE
    return 0;
#else
    h = LoadLibraryA(zConverted);
#endif
  }
  sqliteFree(zConverted);
  return (void*)h;
  
}
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);
}
#endif /* !SQLITE_OMIT_LOAD_EXTENSION */

/*