[04/10] msi: Fully initialize the MSISTORAGESVIEW and MSISTREAMSVIEW structures.
Hans Leidekker
hans at codeweavers.com
Tue Jun 7 03:34:22 CDT 2011
---
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 56f252f..22c9188 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 c9c2d3e..579dad1 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;
--
1.7.4.1
More information about the wine-patches
mailing list