mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 06:30:46 +00:00
cryptnet: Fix compilation on systems that don't support nameless structs.
This commit is contained in:
parent
e88af468fe
commit
4b6368c0e2
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue