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
63f2121d
Commit
63f2121d
authored
Jan 17, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Jan 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Deserialize VT_BOOL as 2 bytes, not 4.
parent
17cc23d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tmarshal.c
dlls/oleaut32/tmarshal.c
+3
-3
No files found.
dlls/oleaut32/tmarshal.c
View file @
63f2121d
...
...
@@ -556,7 +556,6 @@ _xsize(const TYPEDESC *td, ITypeInfo *tinfo) {
return
sizeof
(
DATE
);
case
VT_CY
:
return
sizeof
(
CY
);
/* FIXME: VT_BOOL should return 2? */
case
VT_VARIANT
:
return
sizeof
(
VARIANT
)
+
3
;
/* FIXME: why the +3? */
case
VT_CARRAY
:
{
...
...
@@ -573,6 +572,7 @@ _xsize(const TYPEDESC *td, ITypeInfo *tinfo) {
return
8
;
case
VT_UI2
:
case
VT_I2
:
case
VT_BOOL
:
return
2
;
case
VT_UI1
:
case
VT_I1
:
...
...
@@ -628,7 +628,6 @@ serialize_param(
if
(
writeit
)
hres
=
xbuf_add
(
buf
,(
LPBYTE
)
arg
,
8
);
return
hres
;
case
VT_BOOL
:
case
VT_ERROR
:
case
VT_INT
:
case
VT_UINT
:
...
...
@@ -642,6 +641,7 @@ serialize_param(
return
hres
;
case
VT_I2
:
case
VT_UI2
:
case
VT_BOOL
:
hres
=
S_OK
;
if
(
debugout
)
TRACE_
(
olerelay
)(
"%04x
\n
"
,
*
arg
&
0xffff
);
if
(
writeit
)
...
...
@@ -927,7 +927,6 @@ deserialize_param(
if
(
debugout
)
TRACE_
(
olerelay
)(
"%x%x"
,
arg
[
0
],
arg
[
1
]);
return
hres
;
case
VT_ERROR
:
case
VT_BOOL
:
case
VT_I4
:
case
VT_INT
:
case
VT_UINT
:
...
...
@@ -941,6 +940,7 @@ deserialize_param(
return
hres
;
case
VT_I2
:
case
VT_UI2
:
case
VT_BOOL
:
if
(
readit
)
{
DWORD
x
;
hres
=
xbuf_get
(
buf
,(
LPBYTE
)
&
x
,
sizeof
(
DWORD
));
...
...
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