Commit 63f2121d authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

oleaut32: Deserialize VT_BOOL as 2 bytes, not 4.

parent 17cc23d3
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment