Commit e361356e authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent 41e94622
...@@ -188,6 +188,8 @@ HCATINFO WINAPI CryptCATAdminAddCatalog(HCATADMIN catAdmin, PWSTR catalogFile, ...@@ -188,6 +188,8 @@ HCATINFO WINAPI CryptCATAdminAddCatalog(HCATADMIN catAdmin, PWSTR catalogFile,
HeapFree(GetProcessHeap(), 0, target); HeapFree(GetProcessHeap(), 0, target);
return NULL; return NULL;
} }
SetFileAttributesW(target, FILE_ATTRIBUTE_SYSTEM);
if (!(ci = HeapAlloc(GetProcessHeap(), 0, sizeof(*ci)))) if (!(ci = HeapAlloc(GetProcessHeap(), 0, sizeof(*ci))))
{ {
HeapFree(GetProcessHeap(), 0, target); HeapFree(GetProcessHeap(), 0, target);
......
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