wintrust: Set system attribute on the target catalog file in CryptCATAdminAddCatalog.
This commit is contained in:
parent
41e94622dc
commit
e361356e8e
|
@ -188,6 +188,8 @@ HCATINFO WINAPI CryptCATAdminAddCatalog(HCATADMIN catAdmin, PWSTR catalogFile,
|
|||
HeapFree(GetProcessHeap(), 0, target);
|
||||
return NULL;
|
||||
}
|
||||
SetFileAttributesW(target, FILE_ATTRIBUTE_SYSTEM);
|
||||
|
||||
if (!(ci = HeapAlloc(GetProcessHeap(), 0, sizeof(*ci))))
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, target);
|
||||
|
|
Loading…
Reference in New Issue