[3/3] msxml3: Initialize body pointer and size for unknown types (Coverity)
Nikolay Sivov
nsivov at codeweavers.com
Wed Nov 28 23:54:12 CST 2012
Initialize body pointer and size for unknown types (Coverity)
-------------- next part --------------
>From a0077110673e3311b2a37e5391aa5bda09dc8f6d Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu, 29 Nov 2012 07:52:53 -0500
Subject: [PATCH 5/6] Initialize body pointer and size for unknown types
(Coverity)
---
dlls/msxml3/httprequest.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msxml3/httprequest.c b/dlls/msxml3/httprequest.c
index 3f02337..7fbb836 100644
--- a/dlls/msxml3/httprequest.c
+++ b/dlls/msxml3/httprequest.c
@@ -699,14 +699,14 @@ static HRESULT BindStatusCallback_create(httprequest* This, BindStatusCallback *
size++;
break;
}
+ default:
+ FIXME("unsupported body data type %d\n", V_VT(body));
+ /* fall through */
case VT_EMPTY:
case VT_ERROR:
ptr = NULL;
size = 0;
break;
- default:
- FIXME("unsupported body data type %d\n", V_VT(body));
- break;
}
bsc->body = GlobalAlloc(GMEM_FIXED, size);
--
1.7.10.4
More information about the wine-patches
mailing list