/ Check-in [e812e5d59a]
Login

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

Overview
Comment:Fix typo in the Win32-specific code for the fileio extension.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e812e5d59a699e8b82c51d465d9c0f09df6a1e6996b5499814dca99c5f8020d5
User & Date: mistachkin 2018-09-08 16:53:47
Context
2018-09-08
16:55
Add a missing call to free() in Lemon. check-in: 8b4cf33aaf user: mistachkin tags: trunk
16:53
Fix typo in the Win32-specific code for the fileio extension. check-in: e812e5d59a user: mistachkin tags: trunk
2018-09-07
19:12
Remove a faulty ALWAYS() macro added by check-in [8fa254aa6329bdd0]. check-in: fc47316e9b user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/misc/fileio.c.

   200    200   ){
   201    201     HANDLE hFindFile;
   202    202     WIN32_FIND_DATAW fd;
   203    203     LPWSTR zUnicodeName;
   204    204     extern LPWSTR sqlite3_win32_utf8_to_unicode(const char*);
   205    205     zUnicodeName = sqlite3_win32_utf8_to_unicode(zPath);
   206    206     if( zUnicodeName ){
   207         -    memset(&fd, 0, sizeof(WIN32_FIND_DATA));
          207  +    memset(&fd, 0, sizeof(WIN32_FIND_DATAW));
   208    208       hFindFile = FindFirstFileW(zUnicodeName, &fd);
   209    209       if( hFindFile!=NULL ){
   210    210         pStatBuf->st_ctime = (time_t)fileTimeToUnixTime(&fd.ftCreationTime);
   211    211         pStatBuf->st_atime = (time_t)fileTimeToUnixTime(&fd.ftLastAccessTime);
   212    212         pStatBuf->st_mtime = (time_t)fileTimeToUnixTime(&fd.ftLastWriteTime);
   213    213         FindClose(hFindFile);
   214    214       }