From a9476d4edf85a3b0bd3594f341b203f1cf14bbde Mon Sep 17 00:00:00 2001 From: Saulius Krasuckas Date: Tue, 6 Sep 2005 09:21:08 +0000 Subject: [PATCH] Older platforms choke on a NULL as the third parameter to MsiViewGetError. --- dlls/msi/tests/db.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c index 83fecf68ac1..72484b8d7a4 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -388,7 +388,9 @@ static void test_viewmodify(void) ok(r == ERROR_SUCCESS, "query failed\n"); /* check what the error function reports without doing anything */ - r = MsiViewGetError( 0, NULL, NULL ); + sz = 0; + /* passing NULL as the 3rd param make function to crash on older platforms */ + r = MsiViewGetError( 0, NULL, &sz ); ok(r == MSIDBERROR_INVALIDARG, "MsiViewGetError return\n"); /* open a view */ -- 2.11.4.GIT