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
efa2905c
Commit
efa2905c
authored
Feb 25, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Use better naming to clarify copy direction.
parent
2ce06e57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
recinfo.c
dlls/oleaut32/recinfo.c
+7
-8
No files found.
dlls/oleaut32/recinfo.c
View file @
efa2905c
...
@@ -266,20 +266,19 @@ static HRESULT WINAPI IRecordInfoImpl_RecordClear(IRecordInfo *iface, PVOID pvEx
...
@@ -266,20 +266,19 @@ static HRESULT WINAPI IRecordInfoImpl_RecordClear(IRecordInfo *iface, PVOID pvEx
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
IRecordInfoImpl_RecordCopy
(
IRecordInfo
*
iface
,
PVOID
pvExisting
,
static
HRESULT
WINAPI
IRecordInfoImpl_RecordCopy
(
IRecordInfo
*
iface
,
void
*
src_rec
,
void
*
dest_rec
)
PVOID
pvNew
)
{
{
IRecordInfoImpl
*
This
=
impl_from_IRecordInfo
(
iface
);
IRecordInfoImpl
*
This
=
impl_from_IRecordInfo
(
iface
);
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
S_OK
;
int
i
;
int
i
;
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
pvExisting
,
pvNew
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
src_rec
,
dest_rec
);
if
(
!
pvExisting
||
!
pvNew
)
if
(
!
src_rec
||
!
dest_rec
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
/* release already stored data */
/* release already stored data */
IRecordInfo_RecordClear
(
iface
,
pvNew
);
IRecordInfo_RecordClear
(
iface
,
dest_rec
);
for
(
i
=
0
;
i
<
This
->
n_vars
;
i
++
)
for
(
i
=
0
;
i
<
This
->
n_vars
;
i
++
)
{
{
...
@@ -290,8 +289,8 @@ static HRESULT WINAPI IRecordInfoImpl_RecordCopy(IRecordInfo *iface, PVOID pvExi
...
@@ -290,8 +289,8 @@ static HRESULT WINAPI IRecordInfoImpl_RecordCopy(IRecordInfo *iface, PVOID pvExi
continue
;
continue
;
}
}
src
=
((
BYTE
*
)
pvExisting
)
+
This
->
fields
[
i
].
offset
;
src
=
((
BYTE
*
)
src_rec
)
+
This
->
fields
[
i
].
offset
;
dest
=
((
BYTE
*
)
pvNew
)
+
This
->
fields
[
i
].
offset
;
dest
=
((
BYTE
*
)
dest_rec
)
+
This
->
fields
[
i
].
offset
;
switch
(
This
->
fields
[
i
].
vt
)
switch
(
This
->
fields
[
i
].
vt
)
{
{
case
VT_BSTR
:
case
VT_BSTR
:
...
@@ -333,7 +332,7 @@ static HRESULT WINAPI IRecordInfoImpl_RecordCopy(IRecordInfo *iface, PVOID pvExi
...
@@ -333,7 +332,7 @@ static HRESULT WINAPI IRecordInfoImpl_RecordCopy(IRecordInfo *iface, PVOID pvExi
}
}
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
IRecordInfo_RecordClear
(
iface
,
pvNew
);
IRecordInfo_RecordClear
(
iface
,
dest_rec
);
return
hr
;
return
hr
;
}
}
...
...
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