msdasql: Fix logic when dumping diagnostics records.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
868af0c500
commit
1636530c81
|
@ -52,7 +52,7 @@ static void dump_sql_diag_records(SQLSMALLINT type, SQLHANDLE handle)
|
|||
if (!TRACE_ON(msdasql))
|
||||
return;
|
||||
|
||||
while(SQLGetDiagRec(type, handle, i, state, &native, msg, sizeof(msg), &len) != SQL_SUCCESS)
|
||||
while(SQLGetDiagRec(type, handle, i, state, &native, msg, sizeof(msg), &len) == SQL_SUCCESS)
|
||||
{
|
||||
WARN("%d: %s: %s\n", i, state, msg);
|
||||
i++;
|
||||
|
|
Loading…
Reference in New Issue