Module: wine Branch: master Commit: e361356e8ef5a827ae0115b53b0c2a529e245407 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e361356e8ef5a827ae0115b53b...
Author: Hans Leidekker hans@codeweavers.com Date: Tue Jan 20 17:12:09 2009 +0100
wintrust: Set system attribute on the target catalog file in CryptCATAdminAddCatalog.
---
dlls/wintrust/crypt.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wintrust/crypt.c b/dlls/wintrust/crypt.c index cf8aa73..e01a230 100644 --- a/dlls/wintrust/crypt.c +++ b/dlls/wintrust/crypt.c @@ -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);