From ea9b9d08e42831c260f86819b29bc83c0729fdaa Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Mon, 17 Jan 2011 23:27:39 -0600 Subject: [PATCH] oleaut32: Deserialize VT_BOOL as 2 bytes, not 4. VT_BOOL is actually a VARIANT_BOOL, which is a short, not a BOOL. --- dlls/oleaut32/tmarshal.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c index 45aacf2..1a54333 100644 --- a/dlls/oleaut32/tmarshal.c +++ b/dlls/oleaut32/tmarshal.c @@ -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)); -- 1.7.1