Francois Gouget : scrrun: Fix compilation on systems that don' t support nameless unions.
Alexandre Julliard
julliard at winehq.org
Mon May 26 07:34:25 CDT 2014
Module: wine
Branch: master
Commit: 2b76dfba97825ff7a7f56efd2085d38ef013abdd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b76dfba97825ff7a7f56efd2085d38ef013abdd
Author: Francois Gouget <fgouget at free.fr>
Date: Sat May 24 11:53:48 2014 +0200
scrrun: Fix compilation on systems that don't support nameless unions.
---
dlls/scrrun/filesystem.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/scrrun/filesystem.c b/dlls/scrrun/filesystem.c
index 94b8083..54deb97 100644
--- a/dlls/scrrun/filesystem.c
+++ b/dlls/scrrun/filesystem.c
@@ -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);
}
More information about the wine-cvs
mailing list