Francois Gouget : inetcomm: Fix compilation on systems that don' t support nameless unions.

Alexandre Julliard julliard at winehq.org
Mon Feb 18 08:50:53 CST 2008


Module: wine
Branch: master
Commit: 84acc6f9c1406b3da1c5fb8e753a93d5ee0feb87
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=84acc6f9c1406b3da1c5fb8e753a93d5ee0feb87

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Feb 18 11:54:22 2008 +0100

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

---

 dlls/inetcomm/mimeole.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c
index a0da6b9..e986e7f 100644
--- a/dlls/inetcomm/mimeole.c
+++ b/dlls/inetcomm/mimeole.c
@@ -1257,7 +1257,7 @@ static HRESULT WINAPI sub_stream_CopyTo(
     ULARGE_INTEGER totalBytesRead;
     ULARGE_INTEGER totalBytesWritten;
 
-    TRACE("(%p)->(%p, %d, %p, %p)\n", iface, pstm, cb.LowPart, pcbRead, pcbWritten);
+    TRACE("(%p)->(%p, %d, %p, %p)\n", iface, pstm, cb.u.LowPart, pcbRead, pcbWritten);
 
     totalBytesRead.QuadPart = 0;
     totalBytesWritten.QuadPart = 0;
@@ -1525,7 +1525,7 @@ static HRESULT create_body_offset_list(IStream *stm, const char *boundary, struc
 
     zero.QuadPart = 0;
     hr = IStream_Seek(stm, zero, STREAM_SEEK_CUR, &cur);
-    start = cur.LowPart;
+    start = cur.u.LowPart;
 
     do {
         hr = IStream_Read(stm, overlap, PARSER_BUF_SIZE, &read);
@@ -1599,7 +1599,7 @@ static body_t *create_sub_body(MimeMessage *msg, IStream *pStm, BODYOFFSETS *off
     IMimeBody_Load(mime_body, pStm);
     zero.QuadPart = 0;
     hr = IStream_Seek(pStm, zero, STREAM_SEEK_CUR, &cur);
-    offset->cbBodyStart = cur.LowPart + offset->cbHeaderStart;
+    offset->cbBodyStart = cur.u.LowPart + offset->cbHeaderStart;
     if(parent) MimeBody_set_offsets(impl_from_IMimeBody(mime_body), offset);
     IMimeBody_SetData(mime_body, IET_BINARY, NULL, NULL, &IID_IStream, pStm);
     body = new_body_entry(mime_body, msg->next_hbody, parent);
@@ -1629,8 +1629,8 @@ static body_t *create_sub_body(MimeMessage *msg, IStream *pStm, BODYOFFSETS *off
                     IStream *sub_stream;
                     ULARGE_INTEGER start, length;
 
-                    start.LowPart = cur->offsets.cbHeaderStart;
-                    length.LowPart = cur->offsets.cbBodyEnd - cur->offsets.cbHeaderStart;
+                    start.u.LowPart = cur->offsets.cbHeaderStart;
+                    length.u.LowPart = cur->offsets.cbBodyEnd - cur->offsets.cbHeaderStart;
                     create_sub_stream(pStm, start, length, &sub_stream);
                     sub_body = create_sub_body(msg, sub_stream, &cur->offsets, body);
                     IStream_Release(sub_stream);
@@ -1674,7 +1674,7 @@ static HRESULT WINAPI MimeMessage_Load(
 
     zero.QuadPart = 0;
     IStream_Seek(pStm, zero, STREAM_SEEK_END, &cur);
-    offsets.cbBodyEnd = cur.LowPart;
+    offsets.cbBodyEnd = cur.u.LowPart;
     MimeBody_set_offsets(impl_from_IMimeBody(root_body->mime_body), &offsets);
 
     list_add_head(&This->body_tree, &root_body->entry);




More information about the wine-cvs mailing list