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:
Alistair Leslie-Hughes 2022-01-25 15:48:26 +11:00 committed by Alexandre Julliard
parent 868af0c500
commit 1636530c81
1 changed files with 1 additions and 1 deletions

View File

@ -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++;