diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/os_win.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os_win.c b/src/os_win.c index 29775b53b..e97c5ff08 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -385,12 +385,15 @@ static int winLogErrorAtLine( int iLine /* Source line number where error occurred */ ){ char zMsg[500]; /* Human readable error text */ + int i; /* Loop counter */ DWORD iErrno = GetLastError(); /* Error code */ zMsg[0] = 0; getLastErrorMsg(sizeof(zMsg), zMsg); assert( errcode!=SQLITE_OK ); if( zPath==0 ) zPath = ""; + for(i=0; zMsg[i] && zMsg[i]!='\r' && zMsg[i]!='\n'; i++){} + zMsg[i] = 0; sqlite3_log(errcode, "os_win.c:%d: (%d) %s(%s) - %s", iLine, iErrno, zFunc, zPath, zMsg |