inetcomm: a few 64-bit fixes

Austin English austinenglish at gmail.com
Sun Feb 22 15:58:13 CST 2009


Didn't fix all of them, only the ones I knew how to fix. Tested on
64-bit/32-bit wine.

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c
index 871ffa5..1658f78 100644
--- a/dlls/inetcomm/mimeole.c
+++ b/dlls/inetcomm/mimeole.c
@@ -1630,7 +1630,7 @@ static body_t *create_sub_body(MimeMessage *msg, IStream *pStm, BODYOFFSETS *off
     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);
-    msg->next_hbody = (HBODY)((DWORD)msg->next_hbody + 1);
+    msg->next_hbody = (HBODY)((DWORD_PTR)msg->next_hbody + 1);
 
     if(IMimeBody_IsContentType(mime_body, "multipart", NULL) == S_OK)
     {
@@ -2014,12 +2014,12 @@ static HRESULT find_next(IMimeMessage *msg, LPFINDBODY find_body, HBODY *out)
     {
         hr = IMimeMessage_GetBody(msg, IBL_FIRST, (HBODY)find_body->dwReserved, &next);
         if(hr == S_OK)
-            find_body->dwReserved = (DWORD)next;
+            find_body->dwReserved = (DWORD_PTR)next;
         else
         {
             hr = IMimeMessage_GetBody(msg, IBL_NEXT, (HBODY)find_body->dwReserved, &next);
             if(hr == S_OK)
-                find_body->dwReserved = (DWORD)next;
+                find_body->dwReserved = (DWORD_PTR)next;
             else
                 return MIME_E_NOT_FOUND;
         }


More information about the wine-patches mailing list