Older platforms choke on a NULL as the third parameter to

MsiViewGetError.
This commit is contained in:
Saulius Krasuckas 2005-09-06 09:21:08 +00:00 committed by Alexandre Julliard
parent e9ce57739d
commit a9476d4edf
1 changed files with 3 additions and 1 deletions

View File

@ -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 */