Hans Leidekker : msi: Fully initialize the MSISTORAGESVIEW and MSISTREAMSVIEW structures.
Module: wine Branch: master Commit: 8aa8b9b654157a0154d5534c74e49b0389eab1c4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8aa8b9b654157a0154d5534c74... Author: Hans Leidekker <hans(a)codeweavers.com> Date: Tue Jun 7 10:34:22 2011 +0200 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 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;
participants (1)
-
Alexandre Julliard