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
8105a120
Commit
8105a120
authored
Jan 07, 2013
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Check start for NULL before strstrW (Coverity).
parent
29957438
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
datainit.c
dlls/oledb32/datainit.c
+2
-4
No files found.
dlls/oledb32/datainit.c
View file @
8105a120
...
...
@@ -414,8 +414,6 @@ static HRESULT WINAPI datainit_GetDataSource(IDataInitialize *iface, IUnknown *o
/* now set properties */
if
(
initstring
)
{
static
const
WCHAR
scolW
[]
=
{
';'
,
0
};
static
const
WCHAR
eqW
[]
=
{
'='
,
0
};
WCHAR
*
eq
,
*
start
;
hr
=
IUnknown_QueryInterface
(
*
datasource
,
&
IID_IDBProperties
,
(
void
**
)
&
dbprops
);
...
...
@@ -426,10 +424,10 @@ static HRESULT WINAPI datainit_GetDataSource(IDataInitialize *iface, IUnknown *o
}
start
=
initstring
;
while
(
(
eq
=
strstrW
(
start
,
eqW
)))
while
(
start
&&
(
eq
=
strchrW
(
start
,
'='
)))
{
static
const
WCHAR
providerW
[]
=
{
'P'
,
'r'
,
'o'
,
'v'
,
'i'
,
'd'
,
'e'
,
'r'
,
0
};
WCHAR
*
scol
=
str
strW
(
eq
+
1
,
scolW
);
WCHAR
*
scol
=
str
chrW
(
eq
+
1
,
';'
);
BSTR
value
,
name
;
name
=
SysAllocStringLen
(
start
,
eq
-
start
);
...
...
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