Commit 2b76dfba authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

scrrun: Fix compilation on systems that don't support nameless unions.

parent 8c9a145f
......@@ -892,7 +892,7 @@ static HRESULT variant_from_largeint(const ULARGE_INTEGER *src, VARIANT *v)
{
HRESULT hr = S_OK;
if (src->HighPart || src->LowPart > INT_MAX)
if (src->u.HighPart || src->u.LowPart > INT_MAX)
{
V_VT(v) = VT_R8;
hr = VarR8FromUI8(src->QuadPart, &V_R8(v));
......@@ -900,7 +900,7 @@ static HRESULT variant_from_largeint(const ULARGE_INTEGER *src, VARIANT *v)
else
{
V_VT(v) = VT_I4;
V_I4(v) = src->LowPart;
V_I4(v) = src->u.LowPart;
}
return hr;
......@@ -2649,8 +2649,8 @@ static HRESULT WINAPI file_get_Size(IFile *iface, VARIANT *pvarSize)
return create_error(GetLastError());
FindClose(f);
size.LowPart = fd.nFileSizeLow;
size.HighPart = fd.nFileSizeHigh;
size.u.LowPart = fd.nFileSizeLow;
size.u.HighPart = fd.nFileSizeHigh;
return variant_from_largeint(&size, pvarSize);
}
......
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