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
3cb0c813
Commit
3cb0c813
authored
Apr 16, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add support for VT_INT/VT_UINT to PropVariantClear and PropVariantCopy.
parent
e03a3fe5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
ole2.c
dlls/ole32/ole2.c
+10
-0
propvariant.c
dlls/ole32/tests/propvariant.c
+2
-2
No files found.
dlls/ole32/ole2.c
View file @
3cb0c813
...
...
@@ -2863,6 +2863,8 @@ static inline HRESULT PROPVARIANT_ValidateType(VARTYPE vt)
case
VT_UI2
:
case
VT_UI4
:
case
VT_UI8
:
case
VT_INT
:
case
VT_UINT
:
case
VT_LPSTR
:
case
VT_LPWSTR
:
case
VT_FILETIME
:
...
...
@@ -2890,6 +2892,8 @@ static inline HRESULT PROPVARIANT_ValidateType(VARTYPE vt)
case
VT_UI2
|
VT_VECTOR
:
case
VT_UI4
|
VT_VECTOR
:
case
VT_UI8
|
VT_VECTOR
:
case
VT_INT
|
VT_VECTOR
:
case
VT_UINT
|
VT_VECTOR
:
case
VT_LPSTR
|
VT_VECTOR
:
case
VT_LPWSTR
|
VT_VECTOR
:
case
VT_FILETIME
|
VT_VECTOR
:
...
...
@@ -2936,6 +2940,8 @@ HRESULT WINAPI PropVariantClear(PROPVARIANT * pvar) /* [in/out] */
case
VT_UI2
:
case
VT_UI4
:
case
VT_UI8
:
case
VT_INT
:
case
VT_UINT
:
case
VT_FILETIME
:
break
;
case
VT_STREAM
:
...
...
@@ -3042,6 +3048,8 @@ HRESULT WINAPI PropVariantCopy(PROPVARIANT *pvarDest, /* [out] */
case
VT_ERROR
:
case
VT_I8
:
case
VT_UI8
:
case
VT_INT
:
case
VT_UINT
:
case
VT_R8
:
case
VT_CY
:
case
VT_DATE
:
...
...
@@ -3110,6 +3118,8 @@ HRESULT WINAPI PropVariantCopy(PROPVARIANT *pvarDest, /* [out] */
case
VT_ERROR
:
elemSize
=
sizeof
(
pvarSrc
->
u
.
scode
);
break
;
case
VT_I8
:
elemSize
=
sizeof
(
pvarSrc
->
u
.
hVal
);
break
;
case
VT_UI8
:
elemSize
=
sizeof
(
pvarSrc
->
u
.
uhVal
);
break
;
case
VT_INT
:
elemSize
=
sizeof
(
pvarSrc
->
u
.
lVal
);
break
;
case
VT_UINT
:
elemSize
=
sizeof
(
pvarSrc
->
u
.
ulVal
);
break
;
case
VT_CY
:
elemSize
=
sizeof
(
pvarSrc
->
u
.
cyVal
);
break
;
case
VT_DATE
:
elemSize
=
sizeof
(
pvarSrc
->
u
.
date
);
break
;
case
VT_FILETIME
:
elemSize
=
sizeof
(
pvarSrc
->
u
.
filetime
);
break
;
...
...
dlls/ole32/tests/propvariant.c
View file @
3cb0c813
...
...
@@ -64,8 +64,8 @@ static const struct valid_mapping
{
PROP_V0
,
PROP_V1
|
PROP_TODO
,
PROP_V0
,
PROP_V1
|
PROP_TODO
},
/* VT_UI4 */
{
PROP_V0
,
PROP_V1A
|
PROP_TODO
,
PROP_V0
,
PROP_V1A
|
PROP_TODO
},
/* VT_I8 */
{
PROP_V0
,
PROP_V1A
|
PROP_TODO
,
PROP_V0
,
PROP_V1A
|
PROP_TODO
},
/* VT_UI8 */
{
PROP_V1
|
PROP_TODO
,
PROP_V1
|
PROP_TODO
,
PROP_INV
,
PROP_V1
|
PROP_TODO
},
/* VT_INT */
{
PROP_V1
|
PROP_TODO
,
PROP_V1
|
PROP_TODO
,
PROP_INV
,
PROP_V1
|
PROP_TODO
},
/* VT_UINT */
{
PROP_V1
,
PROP_V1
|
PROP_TODO
,
PROP_V1
,
PROP_V1
|
PROP_TODO
},
/* VT_INT */
{
PROP_V1
,
PROP_V1
|
PROP_TODO
,
PROP_V1
,
PROP_V1
|
PROP_TODO
},
/* VT_UINT */
{
PROP_INV
,
PROP_INV
,
PROP_INV
,
PROP_INV
},
/* VT_VOID */
{
PROP_INV
,
PROP_INV
,
PROP_INV
,
PROP_INV
},
/* VT_HRESULT */
{
PROP_INV
,
PROP_INV
,
PROP_INV
,
PROP_INV
},
/* VT_PTR */
...
...
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