Nikolay Sivov : msxml3: Initialize body pointer and size for unknown types (Coverity).

Alexandre Julliard julliard at winehq.org
Thu Nov 29 14:15:44 CST 2012


Module: wine
Branch: master
Commit: 2684eee0b243c3e7977c9c3a8582ac49d8215604
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2684eee0b243c3e7977c9c3a8582ac49d8215604

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Nov 29 07:52:53 2012 -0500

msxml3: Initialize body pointer and size for unknown types (Coverity).

---

 dlls/msxml3/httprequest.c |    6 +++---
 1 files 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);




More information about the wine-cvs mailing list