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

Francois Gouget fgouget at free.fr
Sat May 24 04:53:48 CDT 2014


---

ULARGE_INTEGER always has the .u union.

 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);
 }
-- 
2.0.0.rc0



More information about the wine-patches mailing list