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
8d5f94b1
Commit
8d5f94b1
authored
Dec 11, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Implementations for WTHelperGetFileName and WTHelperGetFileHandle.
parent
d055cb8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
wintrust.spec
dlls/wintrust/wintrust.spec
+2
-2
wintrust_main.c
dlls/wintrust/wintrust_main.c
+24
-0
No files found.
dlls/wintrust/wintrust.spec
View file @
8d5f94b1
...
@@ -77,8 +77,8 @@
...
@@ -77,8 +77,8 @@
@ stub WTHelperCertIsSelfSigned
@ stub WTHelperCertIsSelfSigned
@ stub WTHelperCheckCertUsage
@ stub WTHelperCheckCertUsage
@ stub WTHelperGetAgencyInfo
@ stub WTHelperGetAgencyInfo
@ st
ub WTHelperGetFileHandle
@ st
dcall WTHelperGetFileHandle(ptr)
@ st
ub WTHelperGetFileName
@ st
dcall WTHelperGetFileName(ptr)
@ stub WTHelperGetKnownUsages
@ stub WTHelperGetKnownUsages
@ stdcall WTHelperGetProvCertFromChain(ptr long)
@ stdcall WTHelperGetProvCertFromChain(ptr long)
@ stub WTHelperGetProvPrivateDataFromChain
@ stub WTHelperGetProvPrivateDataFromChain
...
...
dlls/wintrust/wintrust_main.c
View file @
8d5f94b1
...
@@ -432,6 +432,30 @@ CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData)
...
@@ -432,6 +432,30 @@ CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData)
return
(
CRYPT_PROVIDER_DATA
*
)
hStateData
;
return
(
CRYPT_PROVIDER_DATA
*
)
hStateData
;
}
}
/***********************************************************************
* WTHelperGetFileName(WINTRUST.@)
*/
LPCWSTR
WINAPI
WTHelperGetFileName
(
WINTRUST_DATA
*
data
)
{
TRACE
(
"%p
\n
"
,
data
);
if
(
data
->
dwUnionChoice
==
WTD_CHOICE_FILE
)
return
data
->
u
.
pFile
->
pcwszFilePath
;
else
return
NULL
;
}
/***********************************************************************
* WTHelperGetFileHandle(WINTRUST.@)
*/
HANDLE
WINAPI
WTHelperGetFileHandle
(
WINTRUST_DATA
*
data
)
{
TRACE
(
"%p
\n
"
,
data
);
if
(
data
->
dwUnionChoice
==
WTD_CHOICE_FILE
)
return
data
->
u
.
pFile
->
hFile
;
else
return
INVALID_HANDLE_VALUE
;
}
static
const
WCHAR
Software_Publishing
[]
=
{
static
const
WCHAR
Software_Publishing
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
...
...
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