oledb32: Add IDataSourceLocator support
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Thu Aug 1 03:36:51 CDT 2013
Hi,
Changelog:
oledb32: Add IDataSourceLocator support
Best Regards
Alistair Leslie-Hughes
-------------- next part --------------
>From 6af8e264b55085823ea5fb3e6907a9561cb58e57 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Thu, 1 Aug 2013 12:28:36 +1000
Subject: [PATCH] Add IDataSourceLocator support
To: wine-patches <wine-patches at winehq.org>
---
dlls/oledb32/Makefile.in | 1 +
dlls/oledb32/main.c | 6 ++++++
dlls/oledb32/oledb_private.h | 1 +
3 files changed, 8 insertions(+)
diff --git a/dlls/oledb32/Makefile.in b/dlls/oledb32/Makefile.in
index 2da63ad..c9afabd 100644
--- a/dlls/oledb32/Makefile.in
+++ b/dlls/oledb32/Makefile.in
@@ -5,6 +5,7 @@ IMPORTS = uuid oleaut32 ole32 user32 advapi32
C_SRCS = \
convert.c \
datainit.c \
+ dslocator.c \
errorinfo.c \
main.c
diff --git a/dlls/oledb32/main.c b/dlls/oledb32/main.c
index 838e6d1..18bc274 100644
--- a/dlls/oledb32/main.c
+++ b/dlls/oledb32/main.c
@@ -129,6 +129,7 @@ static const IClassFactoryVtbl CF_Vtbl =
static cf oledb_convert_cf = { { &CF_Vtbl }, create_oledb_convert };
static cf oledb_datainit_cf = { { &CF_Vtbl }, create_data_init };
static cf oledb_errorinfo_cf = { { &CF_Vtbl }, create_error_info };
+static cf oledb_dslocator_cf = { { &CF_Vtbl }, create_data_source };
/******************************************************************
* DllGetClassObject
@@ -152,6 +153,11 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **obj)
*obj = &oledb_errorinfo_cf;
return S_OK;
}
+ else if ( IsEqualCLSID (rclsid, &CLSID_DataLinks) )
+ {
+ *obj = &oledb_dslocator_cf;
+ return S_OK;
+ }
return CLASS_E_CLASSNOTAVAILABLE;
}
diff --git a/dlls/oledb32/oledb_private.h b/dlls/oledb32/oledb_private.h
index 3497369..d6cbd15 100644
--- a/dlls/oledb32/oledb_private.h
+++ b/dlls/oledb32/oledb_private.h
@@ -20,3 +20,4 @@
HRESULT create_oledb_convert(IUnknown *outer, void **obj) DECLSPEC_HIDDEN;
HRESULT create_data_init(IUnknown *outer, void **obj) DECLSPEC_HIDDEN;
HRESULT create_error_info(IUnknown *outer, void **obj) DECLSPEC_HIDDEN;
+HRESULT create_data_source(IUnknown *outer, void **obj) DECLSPEC_HIDDEN;
--
1.8.1.2
More information about the wine-patches
mailing list