Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bafd9110
Commit
bafd9110
authored
Nov 12, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Fix style of accessing prgPropertySets in Test_DBProperties_GetProperty.
The parameter is a pointer to an array, so don't access it like it is an array of pointers.
parent
b81b24f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
marshal.c
dlls/oledb32/tests/marshal.c
+13
-13
No files found.
dlls/oledb32/tests/marshal.c
View file @
bafd9110
...
...
@@ -168,21 +168,21 @@ static HRESULT WINAPI Test_DBProperties_GetProperties(
todo_wine
ok
(
*
pcPropertySets
==
0
,
"Expected *pcPropertySets to be 0 instead of %d
\n
"
,
*
pcPropertySets
);
*
pcPropertySets
=
1
;
prgPropertySets
[
0
]
=
CoTaskMemAlloc
(
sizeof
(
DBPROPSET
));
prgPropertySets
[
0
]
->
rgProperties
=
CoTaskMemAlloc
(
sizeof
(
DBPROP
));
prgPropertySets
[
0
]
->
rgProperties
[
0
].
dwPropertyID
=
TEST_PROPID
;
prgPropertySets
[
0
]
->
rgProperties
[
0
].
dwOptions
=
DBPROPOPTIONS_REQUIRED
;
prgPropertySets
[
0
]
->
rgProperties
[
0
].
dwStatus
=
S_OK
;
prgPropertySets
[
0
]
->
rgProperties
[
0
].
colid
.
eKind
=
DBKIND_GUID_NAME
;
*
prgPropertySets
=
CoTaskMemAlloc
(
sizeof
(
DBPROPSET
));
(
*
prgPropertySets
)[
0
].
rgProperties
=
CoTaskMemAlloc
(
sizeof
(
DBPROP
));
(
*
prgPropertySets
)[
0
].
rgProperties
[
0
].
dwPropertyID
=
TEST_PROPID
;
(
*
prgPropertySets
)[
0
].
rgProperties
[
0
].
dwOptions
=
DBPROPOPTIONS_REQUIRED
;
(
*
prgPropertySets
)[
0
].
rgProperties
[
0
].
dwStatus
=
S_OK
;
(
*
prgPropertySets
)[
0
].
rgProperties
[
0
].
colid
.
eKind
=
DBKIND_GUID_NAME
;
/* colid contents */
prgPropertySets
[
0
]
->
rgProperties
[
0
].
colid
.
uGuid
.
guid
=
IID_IDBProperties
;
prgPropertySets
[
0
]
->
rgProperties
[
0
].
colid
.
uName
.
pwszName
=
CoTaskMemAlloc
(
sizeof
(
wszDBPropertyColumnName
));
memcpy
(
prgPropertySets
[
0
]
->
rgProperties
[
0
].
colid
.
uName
.
pwszName
,
wszDBPropertyColumnName
,
sizeof
(
wszDBPropertyColumnName
));
(
*
prgPropertySets
)[
0
].
rgProperties
[
0
].
colid
.
uGuid
.
guid
=
IID_IDBProperties
;
(
*
prgPropertySets
)[
0
].
rgProperties
[
0
].
colid
.
uName
.
pwszName
=
CoTaskMemAlloc
(
sizeof
(
wszDBPropertyColumnName
));
memcpy
(
(
*
prgPropertySets
)[
0
].
rgProperties
[
0
].
colid
.
uName
.
pwszName
,
wszDBPropertyColumnName
,
sizeof
(
wszDBPropertyColumnName
));
/* vValue contents */
V_VT
(
&
prgPropertySets
[
0
]
->
rgProperties
[
0
].
vValue
)
=
VT_BSTR
;
V_BSTR
(
&
prgPropertySets
[
0
]
->
rgProperties
[
0
].
vValue
)
=
SysAllocString
(
wszDBPropertyTestString
);
prgPropertySets
[
0
]
->
cProperties
=
1
;
prgPropertySets
[
0
]
->
guidPropertySet
=
IID_IDBProperties
;
V_VT
(
&
(
*
prgPropertySets
)[
0
].
rgProperties
[
0
].
vValue
)
=
VT_BSTR
;
V_BSTR
(
&
(
*
prgPropertySets
)[
0
].
rgProperties
[
0
].
vValue
)
=
SysAllocString
(
wszDBPropertyTestString
);
(
*
prgPropertySets
)[
0
].
cProperties
=
1
;
(
*
prgPropertySets
)[
0
].
guidPropertySet
=
IID_IDBProperties
;
return
S_OK
;
}
...
...
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