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
4b6368c0
Commit
4b6368c0
authored
Oct 28, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Fix compilation on systems that don't support nameless structs.
parent
e88af468
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+5
-4
No files found.
dlls/cryptnet/cryptnet_main.c
View file @
4b6368c0
...
...
@@ -23,6 +23,7 @@
#include <stdio.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h"
#include "wine/debug.h"
...
...
@@ -353,7 +354,7 @@ static BOOL CRYPT_GetObjectFromFile(HANDLE hFile, PCRYPT_BLOB_ARRAY pObject)
if
((
ret
=
GetFileSizeEx
(
hFile
,
&
size
)))
{
if
(
size
.
HighPart
)
if
(
size
.
u
.
HighPart
)
{
WARN
(
"file too big
\n
"
);
SetLastError
(
ERROR_INVALID_DATA
);
...
...
@@ -363,11 +364,11 @@ static BOOL CRYPT_GetObjectFromFile(HANDLE hFile, PCRYPT_BLOB_ARRAY pObject)
{
CRYPT_DATA_BLOB
blob
;
blob
.
pbData
=
CryptMemAlloc
(
size
.
LowPart
);
blob
.
pbData
=
CryptMemAlloc
(
size
.
u
.
LowPart
);
if
(
blob
.
pbData
)
{
blob
.
cbData
=
size
.
LowPart
;
ret
=
ReadFile
(
hFile
,
blob
.
pbData
,
size
.
LowPart
,
&
blob
.
cbData
,
blob
.
cbData
=
size
.
u
.
LowPart
;
ret
=
ReadFile
(
hFile
,
blob
.
pbData
,
size
.
u
.
LowPart
,
&
blob
.
cbData
,
NULL
);
if
(
ret
)
{
...
...
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