wintrust: Set system attribute on the target catalog file in CryptCATAdminAddCatalog.

This commit is contained in:
Hans Leidekker 2009-01-20 17:12:09 +01:00 committed by Alexandre Julliard
parent 41e94622dc
commit e361356e8e
1 changed files with 2 additions and 0 deletions

View File

@ -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);