James Hawkins : msi: Initialize the size parameter.

Alexandre Julliard julliard at winehq.org
Mon Mar 24 07:54:52 CDT 2008


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

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Sun Mar 23 17:45:19 2008 -0700

msi: Initialize the size parameter.

---

 dlls/msi/tests/source.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/tests/source.c b/dlls/msi/tests/source.c
index b109315..aef15ba 100644
--- a/dlls/msi/tests/source.c
+++ b/dlls/msi/tests/source.c
@@ -272,6 +272,7 @@ static void test_MsiSourceListGetInfo(void)
     ok(r == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %d\n", r);
 
     /* size is non-NULL while value is NULL */
+    size = MAX_PATH;
     r = pMsiSourceListGetInfoA(prodcode, usersid, MSIINSTALLCONTEXT_USERUNMANAGED,
                               MSICODE_PRODUCT, INSTALLPROPERTY_PACKAGENAME, NULL, &size);
     ok(r == ERROR_UNKNOWN_PRODUCT, "Expected ERROR_UNKNOWN_PRODUCT, got %d\n", r);
@@ -283,6 +284,7 @@ static void test_MsiSourceListGetInfo(void)
     ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
 
     /* user product key exists */
+    size = MAX_PATH;
     r = pMsiSourceListGetInfoA(prodcode, usersid, MSIINSTALLCONTEXT_USERUNMANAGED,
                               MSICODE_PRODUCT, INSTALLPROPERTY_PACKAGENAME, NULL, &size);
     ok(r == ERROR_BAD_CONFIGURATION, "Expected ERROR_BAD_CONFIGURATION, got %d\n", r);




More information about the wine-cvs mailing list