Commit 61d1152c authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msdasql: Fixup GetCommandText wrt dialect.

parent 5802a27d
......@@ -834,8 +834,11 @@ static HRESULT WINAPI command_GetCommandText(ICommandText *iface, GUID *dialect,
if (!command->query)
return DB_E_NOCOMMAND;
if (IsEqualGUID(&DBGUID_DEFAULT, dialect))
if (!IsEqualGUID(&DBGUID_DEFAULT, dialect))
{
*dialect = DBGUID_DEFAULT;
hr = DB_S_DIALECTIGNORED;
}
*commandstr = heap_alloc((lstrlenW(command->query)+1)*sizeof(WCHAR));
wcscpy(*commandstr, command->query);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment