Module: wine Branch: master Commit: 2e51464e4da52d726fdc2ba6e5f24cb1bd4fd93e URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e51464e4da52d726fdc2ba6e5...
Author: Hans Leidekker hans@codeweavers.com Date: Fri Apr 20 10:56:11 2012 +0200
msi/tests: Add a test for MsiEnumProductsEx.
---
dlls/msi/tests/msi.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c index f7d0717..67b7e52 100644 --- a/dlls/msi/tests/msi.c +++ b/dlls/msi/tests/msi.c @@ -11882,6 +11882,13 @@ static void test_MsiEnumProductsEx(void) ok( len == sizeof(sid), "got %u\n", len ); ok( !sid[0], "got %s\n", sid );
+ sid[0] = 0; + len = 0; + r = pMsiEnumProductsExA( NULL, usersid, MSIINSTALLCONTEXT_USERUNMANAGED, 0, NULL, NULL, sid, &len ); + ok( r == ERROR_MORE_DATA, "got %u\n", r ); + ok( len, "length unchanged\n" ); + ok( !sid[0], "got %s\n", sid ); + guid[0] = 0; context = 0xdeadbeef; sid[0] = 0;