Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ff91ac64
Commit
ff91ac64
authored
Jun 18, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4263bfb4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
25 deletions
+25
-25
Makefile.in
dlls/oledb32/Makefile.in
+2
-0
datainit.c
dlls/oledb32/datainit.c
+23
-24
errorinfo.c
dlls/oledb32/errorinfo.c
+0
-1
No files found.
dlls/oledb32/Makefile.in
View file @
ff91ac64
MODULE
=
oledb32.dll
IMPORTS
=
uuid oleaut32 ole32 user32 advapi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
convert.c
\
datainit.c
\
...
...
dlls/oledb32/datainit.c
View file @
ff91ac64
...
...
@@ -31,7 +31,6 @@
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/list.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
oledb
);
...
...
@@ -299,11 +298,11 @@ struct mode_propval
DWORD
value
;
};
static
int
dbmodeprop_compare
(
const
void
*
a
,
const
void
*
b
)
static
int
__cdecl
dbmodeprop_compare
(
const
void
*
a
,
const
void
*
b
)
{
const
WCHAR
*
src
=
a
;
const
struct
mode_propval
*
propval
=
b
;
return
strcmpiW
(
src
,
propval
->
name
);
return
wcsicmp
(
src
,
propval
->
name
);
}
static
HRESULT
convert_dbproperty_mode
(
const
WCHAR
*
src
,
VARIANT
*
dest
)
...
...
@@ -447,7 +446,7 @@ static HRESULT parse_init_string(const WCHAR *initstring, struct dbprops *props)
props
->
count
=
0
;
start
=
initstring
;
while
(
start
&&
(
eq
=
strchrW
(
start
,
'='
)))
while
(
start
&&
(
eq
=
wcschr
(
start
,
'='
)))
{
static
const
WCHAR
providerW
[]
=
{
'P'
,
'r'
,
'o'
,
'v'
,
'i'
,
'd'
,
'e'
,
'r'
,
0
};
WCHAR
*
delim
,
quote
;
...
...
@@ -462,10 +461,10 @@ static HRESULT parse_init_string(const WCHAR *initstring, struct dbprops *props)
{
/* for quoted value string, skip opening mark, look for terminating one */
eq
++
;
delim
=
strchrW
(
eq
,
quote
);
delim
=
wcschr
(
eq
,
quote
);
}
else
delim
=
strchrW
(
eq
,
';'
);
delim
=
wcschr
(
eq
,
';'
);
if
(
delim
)
value
=
SysAllocStringLen
(
eq
,
delim
-
eq
);
...
...
@@ -482,7 +481,7 @@ static HRESULT parse_init_string(const WCHAR *initstring, struct dbprops *props)
}
start
=
delim
;
if
(
!
strcmpiW
(
name
,
providerW
))
if
(
!
wcsicmp
(
name
,
providerW
))
{
SysFreeString
(
name
);
SysFreeString
(
value
);
...
...
@@ -519,7 +518,7 @@ static const struct dbproperty *get_known_dprop_descr(BSTR name)
n
=
(
min
+
max
)
/
2
;
r
=
strcmpiW
(
dbproperties
[
n
].
name
,
name
);
r
=
wcsicmp
(
dbproperties
[
n
].
name
,
name
);
if
(
!
r
)
break
;
...
...
@@ -565,9 +564,9 @@ static HRESULT get_dbpropset_from_proplist(struct dbprops *props, DBPROPSET **pr
/* provider specific property is always VT_BSTR */
len
=
SysStringLen
(
pair
->
name
)
+
SysStringLen
(
pair
->
value
)
+
1
/* for '=' */
;
str
=
SysAllocStringLen
(
NULL
,
len
);
strcpyW
(
str
,
pair
->
name
);
strcatW
(
str
,
eqW
);
strcatW
(
str
,
pair
->
value
);
l
strcpyW
(
str
,
pair
->
name
);
l
strcatW
(
str
,
eqW
);
l
strcatW
(
str
,
pair
->
value
);
(
*
propset
)
->
cProperties
++
;
(
*
propset
)
->
guidPropertySet
=
DBPROPSET_DBINIT
;
...
...
@@ -624,9 +623,9 @@ static inline WCHAR *strdupW(const WCHAR *src)
{
WCHAR
*
dest
;
if
(
!
src
)
return
NULL
;
dest
=
heap_alloc
((
strlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
));
dest
=
heap_alloc
((
l
strlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
dest
)
strcpyW
(
dest
,
src
);
l
strcpyW
(
dest
,
src
);
return
dest
;
}
...
...
@@ -635,7 +634,7 @@ static WCHAR *strstriW(const WCHAR *str, const WCHAR *sub)
LPWSTR
strlower
,
sublower
,
r
;
strlower
=
CharLowerW
(
strdupW
(
str
));
sublower
=
CharLowerW
(
strdupW
(
sub
));
r
=
strstrW
(
strlower
,
sublower
);
r
=
wcsstr
(
strlower
,
sublower
);
if
(
r
)
r
=
(
LPWSTR
)
str
+
(
r
-
strlower
);
heap_free
(
strlower
);
...
...
@@ -818,7 +817,7 @@ static void write_propvalue_str(WCHAR *str, DBPROP *prop)
if
(
V_VT
(
v
)
==
VT_BSTR
)
{
strcatW
(
str
,
V_BSTR
(
v
));
l
strcatW
(
str
,
V_BSTR
(
v
));
return
;
}
...
...
@@ -826,7 +825,7 @@ static void write_propvalue_str(WCHAR *str, DBPROP *prop)
hr
=
VariantChangeType
(
&
vstr
,
v
,
VARIANT_ALPHABOOL
,
VT_BSTR
);
if
(
hr
==
S_OK
)
{
strcatW
(
str
,
V_BSTR
(
&
vstr
));
l
strcatW
(
str
,
V_BSTR
(
&
vstr
));
VariantClear
(
&
vstr
);
}
}
...
...
@@ -917,14 +916,14 @@ static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, I
IDBProperties_Release
(
props
);
/* check if we need to skip password */
len
=
strlenW
(
progid
)
+
strlenW
(
provW
)
+
1
;
/* including ';' */
len
=
lstrlenW
(
progid
)
+
l
strlenW
(
provW
)
+
1
;
/* including ';' */
for
(
i
=
0
;
i
<
count
;
i
++
)
{
WCHAR
*
descr
=
get_propinfo_descr
(
&
propset
->
rgProperties
[
i
],
propinfoset
);
if
(
descr
)
{
/* include '=' and ';' */
len
+=
strlenW
(
descr
)
+
2
;
len
+=
l
strlenW
(
descr
)
+
2
;
len
+=
get_propvalue_length
(
&
propset
->
rgProperties
[
i
]);
}
...
...
@@ -938,9 +937,9 @@ static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, I
*
init_string
[
0
]
=
0
;
/* provider name */
strcatW
(
*
init_string
,
provW
);
strcatW
(
*
init_string
,
progid
);
strcatW
(
*
init_string
,
colW
);
l
strcatW
(
*
init_string
,
provW
);
l
strcatW
(
*
init_string
,
progid
);
l
strcatW
(
*
init_string
,
colW
);
CoTaskMemFree
(
progid
);
for
(
i
=
0
;
i
<
count
;
i
++
)
...
...
@@ -953,10 +952,10 @@ static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, I
if
(
descr
)
{
static
const
WCHAR
eqW
[]
=
{
'='
,
0
};
strcatW
(
*
init_string
,
descr
);
strcatW
(
*
init_string
,
eqW
);
l
strcatW
(
*
init_string
,
descr
);
l
strcatW
(
*
init_string
,
eqW
);
write_propvalue_str
(
*
init_string
,
&
propset
->
rgProperties
[
i
]);
strcatW
(
*
init_string
,
colW
);
l
strcatW
(
*
init_string
,
colW
);
}
}
...
...
dlls/oledb32/errorinfo.c
View file @
ff91ac64
...
...
@@ -31,7 +31,6 @@
#include "oledb_private.h"
#include "wine/unicode.h"
#include "wine/heap.h"
#include "wine/list.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment