Commit 4b6368c0 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

cryptnet: Fix compilation on systems that don't support nameless structs.

parent e88af468
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <stdio.h> #include <stdio.h>
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h" #include "windef.h"
#include "wine/debug.h" #include "wine/debug.h"
...@@ -353,7 +354,7 @@ static BOOL CRYPT_GetObjectFromFile(HANDLE hFile, PCRYPT_BLOB_ARRAY pObject) ...@@ -353,7 +354,7 @@ static BOOL CRYPT_GetObjectFromFile(HANDLE hFile, PCRYPT_BLOB_ARRAY pObject)
if ((ret = GetFileSizeEx(hFile, &size))) if ((ret = GetFileSizeEx(hFile, &size)))
{ {
if (size.HighPart) if (size.u.HighPart)
{ {
WARN("file too big\n"); WARN("file too big\n");
SetLastError(ERROR_INVALID_DATA); SetLastError(ERROR_INVALID_DATA);
...@@ -363,11 +364,11 @@ static BOOL CRYPT_GetObjectFromFile(HANDLE hFile, PCRYPT_BLOB_ARRAY pObject) ...@@ -363,11 +364,11 @@ static BOOL CRYPT_GetObjectFromFile(HANDLE hFile, PCRYPT_BLOB_ARRAY pObject)
{ {
CRYPT_DATA_BLOB blob; CRYPT_DATA_BLOB blob;
blob.pbData = CryptMemAlloc(size.LowPart); blob.pbData = CryptMemAlloc(size.u.LowPart);
if (blob.pbData) if (blob.pbData)
{ {
blob.cbData = size.LowPart; blob.cbData = size.u.LowPart;
ret = ReadFile(hFile, blob.pbData, size.LowPart, &blob.cbData, ret = ReadFile(hFile, blob.pbData, size.u.LowPart, &blob.cbData,
NULL); NULL);
if (ret) if (ret)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment