Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8085ea5f
Commit
8085ea5f
authored
Jan 27, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Jan 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Return error directly from SOFTPUB_CreateStoreFromMessage.
parent
568b0025
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
softpub.c
dlls/wintrust/softpub.c
+12
-13
No files found.
dlls/wintrust/softpub.c
View file @
8085ea5f
...
...
@@ -194,20 +194,23 @@ static DWORD SOFTPUB_GetMessageFromFile(CRYPT_PROVIDER_DATA *data, HANDLE file,
return
err
;
}
static
BOOL
SOFTPUB_CreateStoreFromMessage
(
CRYPT_PROVIDER_DATA
*
data
)
static
DWORD
SOFTPUB_CreateStoreFromMessage
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
=
FALSE
;
DWORD
err
=
ERROR_SUCCESS
;
HCERTSTORE
store
;
store
=
CertOpenStore
(
CERT_STORE_PROV_MSG
,
data
->
dwEncoding
,
data
->
hProv
,
CERT_STORE_NO_CRYPT_RELEASE_FLAG
,
data
->
hMsg
);
if
(
store
)
{
ret
=
data
->
psPfns
->
pfnAddStore2Chain
(
data
,
store
);
if
(
!
data
->
psPfns
->
pfnAddStore2Chain
(
data
,
store
))
err
=
GetLastError
();
CertCloseStore
(
store
,
0
);
}
TRACE
(
"returning %d
\n
"
,
ret
);
return
ret
;
else
err
=
GetLastError
();
TRACE
(
"returning %d
\n
"
,
err
);
return
err
;
}
static
DWORD
SOFTPUB_DecodeInnerContent
(
CRYPT_PROVIDER_DATA
*
data
)
...
...
@@ -341,11 +344,9 @@ static DWORD SOFTPUB_LoadFileMessage(CRYPT_PROVIDER_DATA *data)
data
->
pWintrustData
->
u
.
pFile
->
pcwszFilePath
);
if
(
err
)
goto
error
;
if
(
!
SOFTPUB_CreateStoreFromMessage
(
data
))
{
err
=
GetLastError
();
err
=
SOFTPUB_CreateStoreFromMessage
(
data
);
if
(
err
)
goto
error
;
}
if
(
!
SOFTPUB_DecodeInnerContent
(
data
))
err
=
GetLastError
();
error:
...
...
@@ -381,11 +382,9 @@ static DWORD SOFTPUB_LoadCatalogMessage(CRYPT_PROVIDER_DATA *data)
data
->
pWintrustData
->
u
.
pFile
->
pcwszFilePath
);
if
(
err
)
goto
error
;
if
(
!
SOFTPUB_CreateStoreFromMessage
(
data
))
{
err
=
GetLastError
();
err
=
SOFTPUB_CreateStoreFromMessage
(
data
);
if
(
err
)
goto
error
;
}
if
(
!
SOFTPUB_DecodeInnerContent
(
data
))
err
=
GetLastError
();
/* FIXME: this loads the catalog file, but doesn't validate the member. */
...
...
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