oledb32: Properties aren't case sensitive (try 2)
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Mon Jun 17 06:49:38 CDT 2013
Hi,
Re-based against clean tree.
Changelog:
oledb32: Properties aren't case sensitive
Best Regards
Alistair Leslie-Hughes
-------------- next part --------------
>From 2349f00f0571d3875c989044bf7d509af9b26a81 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Mon, 17 Jun 2013 21:48:14 +1000
Subject: [PATCH] Properties aren't case sensitive
To: wine-patches <wine-patches at winehq.org>
---
dlls/oledb32/datainit.c | 2 +-
dlls/oledb32/tests/database.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/oledb32/datainit.c b/dlls/oledb32/datainit.c
index 13d9f55..58bd812 100644
--- a/dlls/oledb32/datainit.c
+++ b/dlls/oledb32/datainit.c
@@ -368,7 +368,7 @@ static HRESULT set_dbpropset(BSTR name, BSTR value, DBPROPSET **propset)
n = (min+max)/2;
- r = strcmpW(dbproperties[n].name, name);
+ r = strcmpiW(dbproperties[n].name, name);
if (!r)
break;
diff --git a/dlls/oledb32/tests/database.c b/dlls/oledb32/tests/database.c
index 518bba7..216adc6 100644
--- a/dlls/oledb32/tests/database.c
+++ b/dlls/oledb32/tests/database.c
@@ -97,6 +97,7 @@ static void test_database(void)
'D','a','t','a',' ','S','o','u','r','c','e','=','d','u','m','m','y',';',
'P','e','r','s','i','s','t',' ','S','e','c','u','r','i','t','y',' ','I','n','f','o','=','F','a','l','s','e',';',0};
static WCHAR initstring_default[] = {'D','a','t','a',' ','S','o','u','r','c','e','=','d','u','m','m','y',';',0};
+ static WCHAR initstring_lower[] = {'d','a','t','a',' ','s','o','u','r','c','e','=','d','u','m','m','y',';',0};
IDataInitialize *datainit = NULL;
HRESULT hr;
@@ -111,6 +112,7 @@ static void test_database(void)
test_GetDataSource(NULL);
test_GetDataSource(initstring_jet);
test_GetDataSource(initstring_default);
+ test_GetDataSource(initstring_lower);
}
START_TEST(database)
--
1.8.1.2
More information about the wine-patches
mailing list