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
fc1fbf61
Commit
fc1fbf61
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_OpenFile.
parent
528876c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
softpub.c
dlls/wintrust/softpub.c
+8
-10
No files found.
dlls/wintrust/softpub.c
View file @
fc1fbf61
...
...
@@ -75,9 +75,9 @@ HRESULT WINAPI DriverFinalPolicy(CRYPT_PROVIDER_DATA *data)
/* Assumes data->pWintrustData->u.pFile exists. Makes sure a file handle is
* open for the file.
*/
static
BOOL
SOFTPUB_OpenFile
(
CRYPT_PROVIDER_DATA
*
data
)
static
DWORD
SOFTPUB_OpenFile
(
CRYPT_PROVIDER_DATA
*
data
)
{
BOOL
ret
=
TRUE
;
DWORD
err
=
ERROR_SUCCESS
;
/* PSDK implies that all values should be initialized to NULL, so callers
* typically have hFile as NULL rather than INVALID_HANDLE_VALUE. Check
...
...
@@ -92,13 +92,13 @@ static BOOL SOFTPUB_OpenFile(CRYPT_PROVIDER_DATA *data)
if
(
data
->
pWintrustData
->
u
.
pFile
->
hFile
!=
INVALID_HANDLE_VALUE
)
data
->
fOpenedFile
=
TRUE
;
else
ret
=
FALSE
;
err
=
GetLastError
()
;
}
if
(
ret
)
if
(
!
err
)
GetFileTime
(
data
->
pWintrustData
->
u
.
pFile
->
hFile
,
&
data
->
sftSystemTime
,
NULL
,
NULL
);
TRACE
(
"returning %d
\n
"
,
ret
);
return
ret
;
TRACE
(
"returning %d
\n
"
,
err
);
return
err
;
}
/* Assumes data->pWintrustData->u.pFile exists. Sets data->pPDSip->gSubject to
...
...
@@ -332,11 +332,9 @@ static DWORD SOFTPUB_LoadFileMessage(CRYPT_PROVIDER_DATA *data)
err
=
ERROR_INVALID_PARAMETER
;
goto
error
;
}
if
(
!
SOFTPUB_OpenFile
(
data
))
{
err
=
GetLastError
();
err
=
SOFTPUB_OpenFile
(
data
);
if
(
err
)
goto
error
;
}
if
(
!
SOFTPUB_GetFileSubject
(
data
))
{
err
=
GetLastError
();
...
...
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