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
fd543f5a
Commit
fd543f5a
authored
May 30, 2011
by
David Hedberg
Committed by
Alexandre Julliard
May 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Don't crash in wrapper if variant resides in read-only memory.
parent
6d5be503
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
variant.c
dlls/oleaut32/variant.c
+3
-8
No files found.
dlls/oleaut32/variant.c
View file @
fd543f5a
...
...
@@ -2719,15 +2719,10 @@ HRESULT WINAPI VarCat(LPVARIANT left, LPVARIANT right, LPVARIANT out)
static
HRESULT
_VarChangeTypeExWrap
(
VARIANTARG
*
pvargDest
,
VARIANTARG
*
pvargSrc
,
LCID
lcid
,
USHORT
wFlags
,
VARTYPE
vt
)
{
HRESULT
res
;
VARTYPE
flags
;
VARIANTARG
vtmpsrc
=
*
pvargSrc
;
flags
=
V_VT
(
pvargSrc
)
&
~
VT_TYPEMASK
;
V_VT
(
pvargSrc
)
&=
~
VT_RESERVED
;
res
=
VariantChangeTypeEx
(
pvargDest
,
pvargSrc
,
lcid
,
wFlags
,
vt
);
V_VT
(
pvargSrc
)
|=
flags
;
return
res
;
V_VT
(
&
vtmpsrc
)
&=
~
VT_RESERVED
;
return
VariantChangeTypeEx
(
pvargDest
,
&
vtmpsrc
,
lcid
,
wFlags
,
vt
);
}
/**********************************************************************
...
...
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