msdasql: Fixup GetCommandText wrt dialect.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5802a27dfe
commit
61d1152c7c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue