advapi32/tests: Test the correct error codes.
This commit is contained in:
parent
306b3510a9
commit
c6aee91759
|
@ -464,6 +464,7 @@ static void test_CredMarshalCredentialA(void)
|
|||
str = (char *)0xdeadbeef;
|
||||
SetLastError( 0xdeadbeef );
|
||||
ret = pCredMarshalCredentialA( UsernameTargetCredential, &username, &str );
|
||||
error = GetLastError();
|
||||
ok( !ret, "unexpected success\n" );
|
||||
ok( error == ERROR_INVALID_PARAMETER, "got %u\n", error );
|
||||
ok( str == (char *)0xdeadbeef, "got %p\n", str );
|
||||
|
@ -472,6 +473,7 @@ static void test_CredMarshalCredentialA(void)
|
|||
str = (char *)0xdeadbeef;
|
||||
SetLastError( 0xdeadbeef );
|
||||
ret = pCredMarshalCredentialA( UsernameTargetCredential, &username, &str );
|
||||
error = GetLastError();
|
||||
ok( !ret, "unexpected success\n" );
|
||||
ok( error == ERROR_INVALID_PARAMETER, "got %u\n", error );
|
||||
ok( str == (char *)0xdeadbeef, "got %p\n", str );
|
||||
|
|
Loading…
Reference in New Issue