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
9114bc1b
Commit
9114bc1b
authored
Sep 18, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Fix compilation on systems that don't support nameless unions.
parent
98d63f34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
wintrust_main.c
dlls/wintrust/wintrust_main.c
+9
-7
No files found.
dlls/wintrust/wintrust_main.c
View file @
9114bc1b
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
#include <stdarg.h>
#include <stdarg.h>
#define NONAMELESSUNION
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "winerror.h"
#include "winerror.h"
...
@@ -84,10 +86,10 @@ static LONG WINTRUST_DefaultVerify(HWND hwnd, GUID *actionID,
...
@@ -84,10 +86,10 @@ static LONG WINTRUST_DefaultVerify(HWND hwnd, GUID *actionID,
goto
oom
;
goto
oom
;
provData
->
cdwTrustStepErrors
=
TRUSTERROR_MAX_STEPS
;
provData
->
cdwTrustStepErrors
=
TRUSTERROR_MAX_STEPS
;
provData
->
pPDSip
=
WINTRUST_Alloc
(
sizeof
(
PROVDATA_SIP
));
provData
->
u
.
pPDSip
=
WINTRUST_Alloc
(
sizeof
(
PROVDATA_SIP
));
if
(
!
provData
->
pPDSip
)
if
(
!
provData
->
u
.
pPDSip
)
goto
oom
;
goto
oom
;
provData
->
pPDSip
->
cbStruct
=
sizeof
(
PROVDATA_SIP
);
provData
->
u
.
pPDSip
->
cbStruct
=
sizeof
(
PROVDATA_SIP
);
provData
->
psPfns
=
WINTRUST_Alloc
(
sizeof
(
CRYPT_PROVIDER_FUNCTIONS
));
provData
->
psPfns
=
WINTRUST_Alloc
(
sizeof
(
CRYPT_PROVIDER_FUNCTIONS
));
if
(
!
provData
->
psPfns
)
if
(
!
provData
->
psPfns
)
...
@@ -130,7 +132,7 @@ error:
...
@@ -130,7 +132,7 @@ error:
if
(
provData
)
if
(
provData
)
{
{
WINTRUST_Free
(
provData
->
padwTrustStepErrors
);
WINTRUST_Free
(
provData
->
padwTrustStepErrors
);
WINTRUST_Free
(
provData
->
pPDSip
);
WINTRUST_Free
(
provData
->
u
.
pPDSip
);
WINTRUST_Free
(
provData
->
psPfns
);
WINTRUST_Free
(
provData
->
psPfns
);
WINTRUST_Free
(
provData
);
WINTRUST_Free
(
provData
);
}
}
...
@@ -151,7 +153,7 @@ static LONG WINTRUST_DefaultClose(HWND hwnd, GUID *actionID,
...
@@ -151,7 +153,7 @@ static LONG WINTRUST_DefaultClose(HWND hwnd, GUID *actionID,
{
{
err
=
provData
->
psPfns
->
pfnCleanupPolicy
(
provData
);
err
=
provData
->
psPfns
->
pfnCleanupPolicy
(
provData
);
WINTRUST_Free
(
provData
->
padwTrustStepErrors
);
WINTRUST_Free
(
provData
->
padwTrustStepErrors
);
WINTRUST_Free
(
provData
->
pPDSip
);
WINTRUST_Free
(
provData
->
u
.
pPDSip
);
WINTRUST_Free
(
provData
->
psPfns
);
WINTRUST_Free
(
provData
->
psPfns
);
WINTRUST_Free
(
provData
);
WINTRUST_Free
(
provData
);
data
->
hWVTStateData
=
NULL
;
data
->
hWVTStateData
=
NULL
;
...
@@ -180,7 +182,7 @@ static LONG WINTRUST_PublishedSoftware(HWND hwnd, GUID *actionID,
...
@@ -180,7 +182,7 @@ static LONG WINTRUST_PublishedSoftware(HWND hwnd, GUID *actionID,
/* Undocumented: the published software action is passed a path,
/* Undocumented: the published software action is passed a path,
* and pSIPClientData points to a WIN_TRUST_SUBJECT_FILE.
* and pSIPClientData points to a WIN_TRUST_SUBJECT_FILE.
*/
*/
LPCWSTR
path
=
(
LPCWSTR
)
data
->
pFile
;
LPCWSTR
path
=
(
LPCWSTR
)
data
->
u
.
pFile
;
LPWIN_TRUST_SUBJECT_FILE
subjectFile
=
LPWIN_TRUST_SUBJECT_FILE
subjectFile
=
(
LPWIN_TRUST_SUBJECT_FILE
)
data
->
pSIPClientData
;
(
LPWIN_TRUST_SUBJECT_FILE
)
data
->
pSIPClientData
;
WINTRUST_FILE_INFO
fileInfo
=
{
sizeof
(
fileInfo
),
0
};
WINTRUST_FILE_INFO
fileInfo
=
{
sizeof
(
fileInfo
),
0
};
...
@@ -189,7 +191,7 @@ static LONG WINTRUST_PublishedSoftware(HWND hwnd, GUID *actionID,
...
@@ -189,7 +191,7 @@ static LONG WINTRUST_PublishedSoftware(HWND hwnd, GUID *actionID,
TRACE
(
"subjectFile->lpPath: %s
\n
"
,
debugstr_w
(
subjectFile
->
lpPath
));
TRACE
(
"subjectFile->lpPath: %s
\n
"
,
debugstr_w
(
subjectFile
->
lpPath
));
fileInfo
.
pcwszFilePath
=
path
;
fileInfo
.
pcwszFilePath
=
path
;
fileInfo
.
hFile
=
subjectFile
->
hFile
;
fileInfo
.
hFile
=
subjectFile
->
hFile
;
wintrust_data
.
pFile
=
&
fileInfo
;
wintrust_data
.
u
.
pFile
=
&
fileInfo
;
wintrust_data
.
dwUnionChoice
=
WTD_CHOICE_FILE
;
wintrust_data
.
dwUnionChoice
=
WTD_CHOICE_FILE
;
wintrust_data
.
dwUIChoice
=
WTD_UI_NONE
;
wintrust_data
.
dwUIChoice
=
WTD_UI_NONE
;
...
...
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