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

Francois Gouget fgouget at free.fr
Sat Oct 17 13:29:10 CDT 2009


---

No need for NONAMELESSUNION because LARGE_INTEGER always have this union 
named 'u'.

 dlls/shlwapi/regstream.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/shlwapi/regstream.c b/dlls/shlwapi/regstream.c
index eb906a7..4dc15ad 100644
--- a/dlls/shlwapi/regstream.c
+++ b/dlls/shlwapi/regstream.c
@@ -221,7 +221,7 @@ static HRESULT WINAPI IStream_fnSeek (IStream * iface, LARGE_INTEGER dlibMove, D
 	  return STG_E_INVALIDFUNCTION;
 
 	/* we cut off the high part here */
-	This->dwPos = tmp.LowPart;
+	This->dwPos = tmp.u.LowPart;
 
 	if (plibNewPosition)
 	  plibNewPosition->QuadPart = This->dwPos;
@@ -240,7 +240,7 @@ static HRESULT WINAPI IStream_fnSetSize (IStream * iface, ULARGE_INTEGER libNewS
 	TRACE("(%p, %s)\n", This, wine_dbgstr_longlong(libNewSize.QuadPart));
 
 	/* we cut off the high part here */
-	newLen = libNewSize.LowPart;
+	newLen = libNewSize.u.LowPart;
 	newBuf = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, This->pbBuffer, newLen);
 	if (!newBuf)
 	  return STG_E_INSUFFICIENTMEMORY;
-- 
1.6.3.3



More information about the wine-patches mailing list