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
9e8e14ed
Commit
9e8e14ed
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_LoadFileMessage.
parent
5a712037
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
19 deletions
+35
-19
softpub.c
dlls/wintrust/softpub.c
+35
-19
No files found.
dlls/wintrust/softpub.c
View file @
9e8e14ed
...
...
@@ -323,35 +323,45 @@ static BOOL SOFTPUB_LoadCertMessage(CRYPT_PROVIDER_DATA *data)
return
ret
;
}
static
BOOL
SOFTPUB_LoadFileMessage
(
CRYPT_PROVIDER_DATA
*
data
)
static
DWORD
SOFTPUB_LoadFileMessage
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
;
DWORD
err
=
ERROR_SUCCESS
;
if
(
!
data
->
pWintrustData
->
u
.
pFile
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
ret
=
FALSE
;
err
=
ERROR_INVALID_PARAMETER
;
goto
error
;
}
ret
=
SOFTPUB_OpenFile
(
data
);
if
(
!
ret
)
if
(
!
SOFTPUB_OpenFile
(
data
))
{
err
=
GetLastError
();
goto
error
;
ret
=
SOFTPUB_GetFileSubject
(
data
);
if
(
!
ret
)
}
if
(
!
SOFTPUB_GetFileSubject
(
data
))
{
err
=
GetLastError
();
goto
error
;
ret
=
SOFTPUB_GetSIP
(
data
);
if
(
!
ret
)
}
if
(
!
SOFTPUB_GetSIP
(
data
))
{
err
=
GetLastError
();
goto
error
;
ret
=
SOFTPUB_GetMessageFromFile
(
data
,
data
->
pWintrustData
->
u
.
pFile
->
hFile
,
data
->
pWintrustData
->
u
.
pFile
->
pcwszFilePath
);
if
(
!
ret
)
}
if
(
!
SOFTPUB_GetMessageFromFile
(
data
,
data
->
pWintrustData
->
u
.
pFile
->
hFile
,
data
->
pWintrustData
->
u
.
pFile
->
pcwszFilePath
))
{
err
=
GetLastError
();
goto
error
;
ret
=
SOFTPUB_CreateStoreFromMessage
(
data
);
if
(
!
ret
)
}
if
(
!
SOFTPUB_CreateStoreFromMessage
(
data
))
{
err
=
GetLastError
();
goto
error
;
ret
=
SOFTPUB_DecodeInnerContent
(
data
);
}
if
(
!
SOFTPUB_DecodeInnerContent
(
data
))
err
=
GetLastError
();
error:
return
ret
;
return
err
;
}
static
BOOL
SOFTPUB_LoadCatalogMessage
(
CRYPT_PROVIDER_DATA
*
data
)
...
...
@@ -393,7 +403,8 @@ error:
HRESULT
WINAPI
SoftpubLoadMessage
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
;
BOOL
ret
=
TRUE
;
DWORD
err
=
ERROR_SUCCESS
;
TRACE
(
"(%p)
\n
"
,
data
);
...
...
@@ -406,7 +417,7 @@ HRESULT WINAPI SoftpubLoadMessage(CRYPT_PROVIDER_DATA *data)
ret
=
SOFTPUB_LoadCertMessage
(
data
);
break
;
case
WTD_CHOICE_FILE
:
ret
=
SOFTPUB_LoadFileMessage
(
data
);
err
=
SOFTPUB_LoadFileMessage
(
data
);
break
;
case
WTD_CHOICE_CATALOG
:
ret
=
SOFTPUB_LoadCatalogMessage
(
data
);
...
...
@@ -420,6 +431,11 @@ HRESULT WINAPI SoftpubLoadMessage(CRYPT_PROVIDER_DATA *data)
if
(
!
ret
)
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_OBJPROV
]
=
GetLastError
();
else
if
(
err
)
{
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_OBJPROV
]
=
err
;
ret
=
FALSE
;
}
TRACE
(
"returning %d (%08x)
\n
"
,
ret
?
S_OK
:
S_FALSE
,
data
->
padwTrustStepErrors
[
TRUSTERROR_STEP_FINAL_OBJPROV
]);
return
ret
?
S_OK
:
S_FALSE
;
...
...
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