Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
befce84f
Commit
befce84f
authored
16 years ago
by
Juan Lang
Committed by
Alexandre Julliard
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
crypt32: Close file when appropriate in CertSaveStore.
parent
6917fdd3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/crypt32/serialize.c
+4
-1
4 additions, 1 deletion
dlls/crypt32/serialize.c
with
4 additions
and
1 deletion
dlls/crypt32/serialize.c
+
4
−
1
View file @
befce84f
...
...
@@ -833,7 +833,7 @@ BOOL WINAPI CertSaveStore(HCERTSTORE hCertStore, DWORD dwMsgAndCertEncodingType,
{
BOOL
(
*
saveFunc
)(
HCERTSTORE
,
DWORD
,
void
*
);
void
*
handle
;
BOOL
ret
;
BOOL
ret
,
closeFile
=
TRUE
;
TRACE
(
"(%p, %08x, %d, %d, %p, %08x)
\n
"
,
hCertStore
,
dwMsgAndCertEncodingType
,
dwSaveAs
,
dwSaveTo
,
pvSaveToPara
,
dwFlags
);
...
...
@@ -861,6 +861,7 @@ BOOL WINAPI CertSaveStore(HCERTSTORE hCertStore, DWORD dwMsgAndCertEncodingType,
{
case
CERT_STORE_SAVE_TO_FILE
:
handle
=
pvSaveToPara
;
closeFile
=
FALSE
;
break
;
case
CERT_STORE_SAVE_TO_FILENAME_A
:
handle
=
CreateFileA
((
LPCSTR
)
pvSaveToPara
,
GENERIC_WRITE
,
0
,
NULL
,
...
...
@@ -879,6 +880,8 @@ BOOL WINAPI CertSaveStore(HCERTSTORE hCertStore, DWORD dwMsgAndCertEncodingType,
return
FALSE
;
}
ret
=
saveFunc
(
hCertStore
,
dwMsgAndCertEncodingType
,
handle
);
if
(
closeFile
)
CloseHandle
(
handle
);
TRACE
(
"returning %d
\n
"
,
ret
);
return
ret
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment