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
9f6d5a06
Commit
9f6d5a06
authored
Sep 21, 2001
by
Ove Kaaven
Committed by
Alexandre Julliard
Sep 21, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variants and safe arrays is now able to copy BSTR swith embedded null
characters. Safe arrays now handle BSTRs and variants.
parent
eebbeef9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
safearray.c
dlls/oleaut32/safearray.c
+0
-0
variant.c
dlls/oleaut32/variant.c
+7
-5
No files found.
dlls/oleaut32/safearray.c
View file @
9f6d5a06
This diff is collapsed.
Click to expand it.
dlls/oleaut32/variant.c
View file @
9f6d5a06
...
...
@@ -41,6 +41,8 @@
DEFAULT_DEBUG_CHANNEL
(
ole
);
#define SYSDUPSTRING(str) SysAllocStringLen((str), SysStringLen(str))
#ifndef FLT_MAX
# ifdef MAXFLOAT
# define FLT_MAX MAXFLOAT
...
...
@@ -1675,7 +1677,7 @@ static HRESULT WINAPI ValidateVt( VARTYPE vt )
*/
void
WINAPI
VariantInit
(
VARIANTARG
*
pvarg
)
{
TRACE
(
"(%p)
,stub
\n
"
,
pvarg
);
TRACE
(
"(%p)
\n
"
,
pvarg
);
memset
(
pvarg
,
0
,
sizeof
(
VARIANTARG
));
V_VT
(
pvarg
)
=
VT_EMPTY
;
...
...
@@ -1754,7 +1756,7 @@ HRESULT WINAPI VariantCopy(VARIANTARG* pvargDest, VARIANTARG* pvargSrc)
{
HRESULT
res
=
S_OK
;
TRACE
(
"(%p, %p)
\n
"
,
pvargDest
,
pvargSrc
);
TRACE
(
"(%p, %p)
, vt=%d
\n
"
,
pvargDest
,
pvargSrc
,
V_VT
(
pvargSrc
)
);
res
=
ValidateVariantType
(
V_VT
(
pvargSrc
)
);
...
...
@@ -1795,7 +1797,7 @@ HRESULT WINAPI VariantCopy(VARIANTARG* pvargDest, VARIANTARG* pvargSrc)
switch
(
V_VT
(
pvargSrc
)
&
VT_TYPEMASK
)
{
case
(
VT_BSTR
):
V_UNION
(
pvargDest
,
bstrVal
)
=
S
ysAllocString
(
V_UNION
(
pvargSrc
,
bstrVal
)
);
V_UNION
(
pvargDest
,
bstrVal
)
=
S
YSDUPSTRING
(
V_UNION
(
pvargSrc
,
bstrVal
)
);
break
;
case
(
VT_DISPATCH
):
V_UNION
(
pvargDest
,
pdispVal
)
=
V_UNION
(
pvargSrc
,
pdispVal
);
...
...
@@ -1884,7 +1886,7 @@ HRESULT WINAPI VariantCopyInd(VARIANT* pvargDest, VARIANTARG* pvargSrc)
switch
(
V_VT
(
pvargSrc
)
&
VT_TYPEMASK
)
{
case
(
VT_BSTR
):
V_UNION
(
pvargDest
,
bstrVal
)
=
S
ysAllocString
(
*
(
V_UNION
(
pvargSrc
,
pbstrVal
))
);
V_UNION
(
pvargDest
,
bstrVal
)
=
S
YSDUPSTRING
(
*
(
V_UNION
(
pvargSrc
,
pbstrVal
))
);
break
;
case
(
VT_DISPATCH
):
break
;
...
...
@@ -1976,7 +1978,7 @@ HRESULT WINAPI VariantChangeTypeEx(VARIANTARG* pvargDest, VARIANTARG* pvargSrc,
VARIANTARG
varg
;
VariantInit
(
&
varg
);
TRACE
(
"(%p, %p, %ld, %u, %u)
,stub
\n
"
,
pvargDest
,
pvargSrc
,
lcid
,
wFlags
,
vt
);
TRACE
(
"(%p, %p, %ld, %u, %u)
vt=%d
\n
"
,
pvargDest
,
pvargSrc
,
lcid
,
wFlags
,
vt
,
V_VT
(
pvargSrc
)
);
/* validate our source argument.
*/
...
...
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