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
c2571f23
Commit
c2571f23
authored
Nov 20, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Nov 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Remove the trailing semicolon.
Also, this fixes an out-of-bounds write because the space for the terminating '\0' wasn't included previously.
parent
23b556c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
datainit.c
dlls/oledb32/datainit.c
+2
-3
No files found.
dlls/oledb32/datainit.c
View file @
c2571f23
...
@@ -903,7 +903,7 @@ static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, I
...
@@ -903,7 +903,7 @@ static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, I
IDBProperties_Release
(
props
);
IDBProperties_Release
(
props
);
/* check if we need to skip password */
/* check if we need to skip password */
len
=
lstrlenW
(
progid
)
+
lstrlenW
(
providerW
)
+
1
;
/* including '
;
' */
len
=
lstrlenW
(
progid
)
+
lstrlenW
(
providerW
)
+
1
;
/* including '
\0
' */
for
(
i
=
0
;
i
<
count
;
i
++
)
for
(
i
=
0
;
i
<
count
;
i
++
)
{
{
WCHAR
*
descr
=
get_propinfo_descr
(
&
propset
->
rgProperties
[
i
],
propinfoset
);
WCHAR
*
descr
=
get_propinfo_descr
(
&
propset
->
rgProperties
[
i
],
propinfoset
);
...
@@ -926,7 +926,6 @@ static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, I
...
@@ -926,7 +926,6 @@ static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, I
/* provider name */
/* provider name */
lstrcatW
(
*
init_string
,
providerW
);
lstrcatW
(
*
init_string
,
providerW
);
lstrcatW
(
*
init_string
,
progid
);
lstrcatW
(
*
init_string
,
progid
);
lstrcatW
(
*
init_string
,
L";"
);
CoTaskMemFree
(
progid
);
CoTaskMemFree
(
progid
);
for
(
i
=
0
;
i
<
count
;
i
++
)
for
(
i
=
0
;
i
<
count
;
i
++
)
...
@@ -938,10 +937,10 @@ static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, I
...
@@ -938,10 +937,10 @@ static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, I
descr
=
get_propinfo_descr
(
&
propset
->
rgProperties
[
i
],
propinfoset
);
descr
=
get_propinfo_descr
(
&
propset
->
rgProperties
[
i
],
propinfoset
);
if
(
descr
)
if
(
descr
)
{
{
lstrcatW
(
*
init_string
,
L";"
);
lstrcatW
(
*
init_string
,
descr
);
lstrcatW
(
*
init_string
,
descr
);
lstrcatW
(
*
init_string
,
L"="
);
lstrcatW
(
*
init_string
,
L"="
);
write_propvalue_str
(
*
init_string
,
&
propset
->
rgProperties
[
i
]);
write_propvalue_str
(
*
init_string
,
&
propset
->
rgProperties
[
i
]);
lstrcatW
(
*
init_string
,
L";"
);
}
}
}
}
...
...
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