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
a55f4f9f
Commit
a55f4f9f
authored
Feb 26, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix VariantCopy()/VariantCopyInd() prototypes.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4b2930d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
variant.c
dlls/oleaut32/variant.c
+7
-6
oleauto.h
include/oleauto.h
+2
-2
No files found.
dlls/oleaut32/variant.c
View file @
a55f4f9f
...
@@ -689,10 +689,10 @@ HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG* pVarg)
...
@@ -689,10 +689,10 @@ HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG* pVarg)
/******************************************************************************
/******************************************************************************
* Copy an IRecordInfo object contained in a variant.
* Copy an IRecordInfo object contained in a variant.
*/
*/
static
HRESULT
VARIANT_CopyIRecordInfo
(
VARIANT
*
dest
,
VARIANT
*
src
)
static
HRESULT
VARIANT_CopyIRecordInfo
(
VARIANT
*
dest
,
const
VARIANT
*
src
)
{
{
struct
__tagBRECORD
*
dest_rec
=
&
V_UNION
(
dest
,
brecVal
);
struct
__tagBRECORD
*
dest_rec
=
&
V_UNION
(
dest
,
brecVal
);
struct
__tagBRECORD
*
src_rec
=
&
V_UNION
(
src
,
brecVal
);
const
struct
__tagBRECORD
*
src_rec
=
&
V_UNION
(
src
,
brecVal
);
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
S_OK
;
ULONG
size
;
ULONG
size
;
...
@@ -745,7 +745,7 @@ static HRESULT VARIANT_CopyIRecordInfo(VARIANT *dest, VARIANT *src)
...
@@ -745,7 +745,7 @@ static HRESULT VARIANT_CopyIRecordInfo(VARIANT *dest, VARIANT *src)
* reference count increased using IUnknown_AddRef().
* reference count increased using IUnknown_AddRef().
* - For all by-reference types, only the referencing pointer is copied.
* - For all by-reference types, only the referencing pointer is copied.
*/
*/
HRESULT
WINAPI
VariantCopy
(
VARIANTARG
*
pvargDest
,
VARIANTARG
*
pvargSrc
)
HRESULT
WINAPI
VariantCopy
(
VARIANTARG
*
pvargDest
,
const
VARIANTARG
*
pvargSrc
)
{
{
HRESULT
hres
=
S_OK
;
HRESULT
hres
=
S_OK
;
...
@@ -844,9 +844,10 @@ static inline size_t VARIANT_DataSize(const VARIANT* pv)
...
@@ -844,9 +844,10 @@ static inline size_t VARIANT_DataSize(const VARIANT* pv)
* pvargDest is always cleared using VariantClear() before pvargSrc is copied
* pvargDest is always cleared using VariantClear() before pvargSrc is copied
* to it. If clearing pvargDest fails, so does this function.
* to it. If clearing pvargDest fails, so does this function.
*/
*/
HRESULT
WINAPI
VariantCopyInd
(
VARIANT
*
pvargDest
,
VARIANTARG
*
pvargSrc
)
HRESULT
WINAPI
VariantCopyInd
(
VARIANT
*
pvargDest
,
const
VARIANTARG
*
pvargSrc
)
{
{
VARIANTARG
vTmp
,
*
pSrc
=
pvargSrc
;
const
VARIANTARG
*
pSrc
=
pvargSrc
;
VARIANTARG
vTmp
;
VARTYPE
vt
;
VARTYPE
vt
;
HRESULT
hres
=
S_OK
;
HRESULT
hres
=
S_OK
;
...
@@ -934,7 +935,7 @@ HRESULT WINAPI VariantCopyInd(VARIANT* pvargDest, VARIANTARG* pvargSrc)
...
@@ -934,7 +935,7 @@ HRESULT WINAPI VariantCopyInd(VARIANT* pvargDest, VARIANTARG* pvargSrc)
VariantCopyInd_Return:
VariantCopyInd_Return:
if
(
pSrc
!=
pvargSrc
)
if
(
pSrc
!=
pvargSrc
)
VariantClear
(
pSrc
);
VariantClear
(
&
vTmp
);
TRACE
(
"returning 0x%08x, %s
\n
"
,
hres
,
debugstr_variant
(
pvargDest
));
TRACE
(
"returning 0x%08x, %s
\n
"
,
hres
,
debugstr_variant
(
pvargDest
));
return
hres
;
return
hres
;
...
...
include/oleauto.h
View file @
a55f4f9f
...
@@ -186,8 +186,8 @@ HRESULT WINAPI GetRecordInfoFromGuids(REFGUID,ULONG,ULONG,LCID,REFGUID,IRecordIn
...
@@ -186,8 +186,8 @@ HRESULT WINAPI GetRecordInfoFromGuids(REFGUID,ULONG,ULONG,LCID,REFGUID,IRecordIn
void
WINAPI
VariantInit
(
VARIANT
*
);
void
WINAPI
VariantInit
(
VARIANT
*
);
HRESULT
WINAPI
VariantClear
(
VARIANT
*
);
HRESULT
WINAPI
VariantClear
(
VARIANT
*
);
HRESULT
WINAPI
VariantCopy
(
VARIANT
*
,
VARIANT
*
);
HRESULT
WINAPI
VariantCopy
(
VARIANT
ARG
*
dst
,
const
VARIANTARG
*
src
);
HRESULT
WINAPI
VariantCopyInd
(
VARIANT
*
,
VARIANT
*
);
HRESULT
WINAPI
VariantCopyInd
(
VARIANT
*
dst
,
const
VARIANTARG
*
src
);
HRESULT
WINAPI
VariantChangeType
(
VARIANT
*
,
VARIANT
*
,
USHORT
,
VARTYPE
);
HRESULT
WINAPI
VariantChangeType
(
VARIANT
*
,
VARIANT
*
,
USHORT
,
VARTYPE
);
HRESULT
WINAPI
VariantChangeTypeEx
(
VARIANT
*
,
VARIANT
*
,
LCID
,
USHORT
,
VARTYPE
);
HRESULT
WINAPI
VariantChangeTypeEx
(
VARIANT
*
,
VARIANT
*
,
LCID
,
USHORT
,
VARTYPE
);
...
...
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