Commit a9476d4e authored by Saulius Krasuckas's avatar Saulius Krasuckas Committed by Alexandre Julliard

Older platforms choke on a NULL as the third parameter to

MsiViewGetError.
parent e9ce5773
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment