crypt32: Fix the adding of pwszIsFunctionName and pwszIsFunctionNameFmt2.
This commit is contained in:
parent
ded7d0bcd5
commit
869b6f7759
|
@ -285,11 +285,12 @@ BOOL WINAPI CryptSIPAddProvider(SIP_ADD_NEWPROVIDER *psNewProv)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
TRACE("%s %s %s %s\n",
|
||||
TRACE("%s %s %s %s %s\n",
|
||||
debugstr_guid( psNewProv->pgSubject ),
|
||||
debugstr_w( psNewProv->pwszDLLFileName ),
|
||||
debugstr_w( psNewProv->pwszMagicNumber ),
|
||||
debugstr_w( psNewProv->pwszIsFunctionName ) );
|
||||
debugstr_w( psNewProv->pwszIsFunctionName ),
|
||||
debugstr_w( psNewProv->pwszIsFunctionNameFmt2 ) );
|
||||
|
||||
#define CRYPT_SIPADDPROV( key, field ) \
|
||||
r = CRYPT_SIPWriteFunction( psNewProv->pgSubject, key, \
|
||||
|
@ -301,7 +302,8 @@ BOOL WINAPI CryptSIPAddProvider(SIP_ADD_NEWPROVIDER *psNewProv)
|
|||
CRYPT_SIPADDPROV( szRemoveSigned, pwszRemoveFuncName );
|
||||
CRYPT_SIPADDPROV( szCreate, pwszCreateFuncName );
|
||||
CRYPT_SIPADDPROV( szVerify, pwszVerifyFuncName );
|
||||
CRYPT_SIPADDPROV( szIsMyFile, pwszIsFunctionNameFmt2 );
|
||||
CRYPT_SIPADDPROV( szIsMyFile, pwszIsFunctionName );
|
||||
CRYPT_SIPADDPROV( szIsMyFile2, pwszIsFunctionNameFmt2 );
|
||||
|
||||
#undef CRYPT_SIPADDPROV
|
||||
|
||||
|
|
|
@ -415,13 +415,10 @@ static void test_AddRemoveProvider(void)
|
|||
/* Dummy provider should be deleted */
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = CryptSIPRemoveProvider(&actionid);
|
||||
todo_wine
|
||||
{
|
||||
ok ( ret, "CryptSIPRemoveProvider should have succeeded\n");
|
||||
ok ( GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %ld\n",
|
||||
GetLastError());
|
||||
}
|
||||
}
|
||||
|
||||
START_TEST(main)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue