Hans Leidekker : wintrust: Set system attribute on the target catalog file in CryptCATAdminAddCatalog .
Alexandre Julliard
julliard at winehq.org
Wed Jan 21 06:39:18 CST 2009
Module: wine
Branch: master
Commit: e361356e8ef5a827ae0115b53b0c2a529e245407
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e361356e8ef5a827ae0115b53b0c2a529e245407
Author: Hans Leidekker <hans at 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);
More information about the wine-cvs
mailing list