/ Check-in [6d2ff096]
Login

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

Overview
Comment:Reduce the number of utf8->unicode conversions required in wince. Ticket #2122 (CVS 3542)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6d2ff0962dff0477fe2af0323032dc16337f42ab
User & Date: drh 2006-12-21 01:37:40
Context
2006-12-21
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
01:29
Move the shared-library loading routines into the OS portability layer, thus enabling the os_win.c code to handle the character encoding confusion of win95/nt/ce. Ticket #2023. (CVS 3541) check-in: a1bcc6de user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

   795    795           CREATE_ALWAYS,
   796    796           fileflags,
   797    797           NULL
   798    798         );
   799    799       }while( h==INVALID_HANDLE_VALUE && cnt++ < 2 && (Sleep(100), 1) );
   800    800   #endif /* OS_WINCE */
   801    801     }
          802  +#if OS_WINCE
          803  +  if( delFlag && h!=INVALID_HANDLE_VALUE ){
          804  +    f.zDeleteOnClose = zConverted;
          805  +    zConverted = 0;
          806  +  }
          807  +  f.hMutex = NULL;
          808  +#endif
   802    809     sqliteFree(zConverted);
   803    810     if( h==INVALID_HANDLE_VALUE ){
   804    811       return SQLITE_CANTOPEN;
   805    812     }
   806    813     f.h = h;
   807         -#if OS_WINCE
   808         -  f.zDeleteOnClose = delFlag ? utf8ToUnicode(zFilename) : 0;
   809         -  f.hMutex = NULL;
   810         -#endif
   811    814     TRACE3("OPEN EX %d \"%s\"\n", h, zFilename);
   812    815     return allocateWinFile(&f, pId);
   813    816   }
   814    817   
   815    818   /*
   816    819   ** Attempt to open a new file for read-only access.
   817    820   **