Skip to content
Snippets Groups Projects
Commit 61d1152c authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard
Browse files

msdasql: Fixup GetCommandText wrt dialect.

parent 5802a27d
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment