msado15: Use correct string type for default provider.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2020-10-21 11:47:12 +02:00 committed by Alexandre Julliard
parent 541437e2ce
commit 9415d45a80
1 changed files with 5 additions and 1 deletions

View File

@ -681,7 +681,11 @@ HRESULT Connection_create( void **obj )
connection->state = adStateClosed;
connection->timeout = 30;
connection->datasource = NULL;
connection->provider = SysAllocString(L"MSDASQL");
if (!(connection->provider = strdupW( L"MSDASQL" )))
{
heap_free( connection );
return E_OUTOFMEMORY;
}
connection->mode = adModeUnknown;
connection->location = adUseServer;