Hans Leidekker : msado15: Use correct string type for default provider.

Alexandre Julliard julliard at winehq.org
Wed Oct 21 15:15:14 CDT 2020


Module: wine
Branch: master
Commit: 9415d45a808eb0d35380b22430b892cb9291c0f8
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9415d45a808eb0d35380b22430b892cb9291c0f8

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Oct 21 11:47:12 2020 +0200

msado15: Use correct string type for default provider.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msado15/connection.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dlls/msado15/connection.c b/dlls/msado15/connection.c
index 2773850236d..e3222e63b6a 100644
--- a/dlls/msado15/connection.c
+++ b/dlls/msado15/connection.c
@@ -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;
 




More information about the wine-cvs mailing list