From 8aa8b9b654157a0154d5534c74e49b0389eab1c4 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Tue, 7 Jun 2011 10:34:22 +0200 Subject: [PATCH] msi: Fully initialize the MSISTORAGESVIEW and MSISTREAMSVIEW structures. --- dlls/msi/storages.c | 2 +- dlls/msi/streams.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msi/storages.c b/dlls/msi/storages.c index 56f252fa37f..22c918885c0 100644 --- a/dlls/msi/storages.c +++ b/dlls/msi/storages.c @@ -557,7 +557,7 @@ UINT STORAGES_CreateView(MSIDATABASE *db, MSIVIEW **view) TRACE("(%p, %p)\n", db, view); - sv = msi_alloc(sizeof(MSISTORAGESVIEW)); + sv = msi_alloc_zero( sizeof(MSISTORAGESVIEW) ); if (!sv) return ERROR_FUNCTION_FAILED; diff --git a/dlls/msi/streams.c b/dlls/msi/streams.c index c9c2d3e5384..579dad19676 100644 --- a/dlls/msi/streams.c +++ b/dlls/msi/streams.c @@ -566,7 +566,7 @@ UINT STREAMS_CreateView(MSIDATABASE *db, MSIVIEW **view) TRACE("(%p, %p)\n", db, view); - sv = msi_alloc(sizeof(MSISTREAMSVIEW)); + sv = msi_alloc_zero( sizeof(MSISTREAMSVIEW) ); if (!sv) return ERROR_FUNCTION_FAILED;