/ Check-in [9598c2a3]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Fix typo, use the syscall table for osOutputDebugStringA.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | winrt
Files: files | file ages | folders
SHA1: 9598c2a398a6e7d9c3ee8b2ae32c21538ad3e15a
User & Date: mistachkin 2012-03-19 23:28:35
Context
2012-03-19
23:32
Merge updates from trunk. check-in: 4ab1ffd4 user: mistachkin tags: winrt
23:28
Fix typo, use the syscall table for osOutputDebugStringA. check-in: 9598c2a3 user: mistachkin tags: winrt
2012-03-18
03:22
On Windows, when no temporary path is available, skip prepending the directory separator. check-in: 32b5c20e user: mistachkin tags: winrt
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

   904    904     int nMin = MIN(nBuf, (SQLITE_WIN32_DBG_BUF_SIZE - 1)); /* may be negative. */
   905    905     if( nMin<-1 ) nMin = -1; /* all negative values become -1. */
   906    906     assert( nMin==-1 || nMin==0 || nMin<SQLITE_WIN32_DBG_BUF_SIZE );
   907    907   #if defined(SQLITE_WIN32_HAS_ANSI)
   908    908     if( nMin>0 ){
   909    909       memset(zDbgBuf, 0, SQLITE_WIN32_DBG_BUF_SIZE);
   910    910       memcpy(zDbgBuf, zBuf, nMin);
   911         -    OutputDebugStringA(zDbgBuf);
          911  +    osOutputDebugStringA(zDbgBuf);
   912    912     }else{
   913         -    OutputDebugStringA(zBuf);
          913  +    osOutputDebugStringA(zBuf);
   914    914     }
   915    915   #elif defined(SQLITE_WIN32_HAS_WIDE)
   916    916     memset(zDbgBuf, 0, SQLITE_WIN32_DBG_BUF_SIZE);
   917    917     if ( osMultiByteToWideChar(
   918    918             osAreFileApisANSI() ? CP_ACP : CP_OEMCP, 0, zBuf,
   919    919             nMin, (LPWSTR)zDbgBuf, SQLITE_WIN32_DBG_BUF_SIZE/sizeof(WCHAR))<=0 ){
   920    920       return;