Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9c55a71f
Commit
9c55a71f
authored
Sep 27, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use CertSaveStore to save file stores.
parent
6471621f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
filestore.c
dlls/crypt32/filestore.c
+5
-2
No files found.
dlls/crypt32/filestore.c
View file @
9c55a71f
...
@@ -39,7 +39,8 @@ static void WINAPI CRYPT_FileCloseStore(HCERTSTORE hCertStore, DWORD dwFlags)
...
@@ -39,7 +39,8 @@ static void WINAPI CRYPT_FileCloseStore(HCERTSTORE hCertStore, DWORD dwFlags)
TRACE
(
"(%p, %08x)
\n
"
,
store
,
dwFlags
);
TRACE
(
"(%p, %08x)
\n
"
,
store
,
dwFlags
);
if
(
store
->
dirty
)
if
(
store
->
dirty
)
CRYPT_WriteSerializedStoreToFile
(
store
->
file
,
store
->
memStore
);
CertSaveStore
(
store
->
memStore
,
X509_ASN_ENCODING
|
PKCS_7_ASN_ENCODING
,
CERT_STORE_SAVE_AS_STORE
,
CERT_STORE_SAVE_TO_FILE
,
store
->
file
,
0
);
CertCloseStore
(
store
->
memStore
,
dwFlags
);
CertCloseStore
(
store
->
memStore
,
dwFlags
);
CloseHandle
(
store
->
file
);
CloseHandle
(
store
->
file
);
CryptMemFree
(
store
);
CryptMemFree
(
store
);
...
@@ -108,7 +109,9 @@ static BOOL WINAPI CRYPT_FileControl(HCERTSTORE hCertStore, DWORD dwFlags,
...
@@ -108,7 +109,9 @@ static BOOL WINAPI CRYPT_FileControl(HCERTSTORE hCertStore, DWORD dwFlags,
ret
=
FALSE
;
ret
=
FALSE
;
}
}
else
if
(
store
->
dirty
)
else
if
(
store
->
dirty
)
ret
=
CRYPT_WriteSerializedStoreToFile
(
store
->
file
,
store
->
memStore
);
ret
=
CertSaveStore
(
store
->
memStore
,
X509_ASN_ENCODING
|
PKCS_7_ASN_ENCODING
,
CERT_STORE_SAVE_AS_STORE
,
CERT_STORE_SAVE_TO_FILE
,
store
->
file
,
0
);
else
else
ret
=
TRUE
;
ret
=
TRUE
;
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment