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
153066c6
Commit
153066c6
authored
Oct 23, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Oct 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Pass file handle and path to SOFTPUB_GetMessageFromFile.
parent
1bfb6029
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
softpub.c
dlls/wintrust/softpub.c
+6
-5
No files found.
dlls/wintrust/softpub.c
View file @
153066c6
...
...
@@ -128,7 +128,8 @@ static BOOL SOFTPUB_GetSIP(CRYPT_PROVIDER_DATA *data)
/* Assumes data->u.pPDSip has been loaded, and data->u.pPDSip->pSip allocated.
* Calls data->u.pPDSip->pSip->pfGet to construct data->hMsg.
*/
static
BOOL
SOFTPUB_GetMessageFromFile
(
CRYPT_PROVIDER_DATA
*
data
)
static
BOOL
SOFTPUB_GetMessageFromFile
(
CRYPT_PROVIDER_DATA
*
data
,
HANDLE
file
,
LPCWSTR
filePath
)
{
BOOL
ret
;
LPBYTE
buf
=
NULL
;
...
...
@@ -144,9 +145,8 @@ static BOOL SOFTPUB_GetMessageFromFile(CRYPT_PROVIDER_DATA *data)
data
->
u
.
pPDSip
->
psSipSubjectInfo
->
cbSize
=
sizeof
(
SIP_SUBJECTINFO
);
data
->
u
.
pPDSip
->
psSipSubjectInfo
->
pgSubjectType
=
&
data
->
u
.
pPDSip
->
gSubject
;
data
->
u
.
pPDSip
->
psSipSubjectInfo
->
hFile
=
data
->
pWintrustData
->
u
.
pFile
->
hFile
;
data
->
u
.
pPDSip
->
psSipSubjectInfo
->
pwsFileName
=
data
->
pWintrustData
->
u
.
pFile
->
pcwszFilePath
;
data
->
u
.
pPDSip
->
psSipSubjectInfo
->
hFile
=
file
;
data
->
u
.
pPDSip
->
psSipSubjectInfo
->
pwsFileName
=
filePath
;
data
->
u
.
pPDSip
->
psSipSubjectInfo
->
hProv
=
data
->
hProv
;
ret
=
data
->
u
.
pPDSip
->
pSip
->
pfGet
(
data
->
u
.
pPDSip
->
psSipSubjectInfo
,
&
data
->
dwEncoding
,
0
,
&
size
,
0
);
...
...
@@ -317,7 +317,8 @@ static BOOL SOFTPUB_LoadFileMessage(CRYPT_PROVIDER_DATA *data)
ret
=
SOFTPUB_GetSIP
(
data
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_GetMessageFromFile
(
data
);
ret
=
SOFTPUB_GetMessageFromFile
(
data
,
data
->
pWintrustData
->
u
.
pFile
->
hFile
,
data
->
pWintrustData
->
u
.
pFile
->
pcwszFilePath
);
if
(
!
ret
)
goto
error
;
ret
=
SOFTPUB_CreateStoreFromMessage
(
data
);
...
...
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