mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 15:44:10 +00:00
inetcomm: Use nameless unions/structs.
This commit is contained in:
parent
c48816400b
commit
6431b9584b
|
@ -19,7 +19,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
#define NONAMELESSUNION
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
#define NONAMELESSUNION
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -267,7 +266,7 @@ static HRESULT WINAPI sub_stream_Seek(
|
||||||
sub_stream_t *This = impl_from_IStream(iface);
|
sub_stream_t *This = impl_from_IStream(iface);
|
||||||
LARGE_INTEGER new_pos;
|
LARGE_INTEGER new_pos;
|
||||||
|
|
||||||
TRACE("(%08lx.%08lx, %lx, %p)\n", dlibMove.u.HighPart, dlibMove.u.LowPart, dwOrigin, plibNewPosition);
|
TRACE("(%08lx.%08lx, %lx, %p)\n", dlibMove.HighPart, dlibMove.LowPart, dwOrigin, plibNewPosition);
|
||||||
|
|
||||||
switch(dwOrigin)
|
switch(dwOrigin)
|
||||||
{
|
{
|
||||||
|
@ -314,7 +313,7 @@ static HRESULT WINAPI sub_stream_CopyTo(
|
||||||
ULARGE_INTEGER totalBytesRead;
|
ULARGE_INTEGER totalBytesRead;
|
||||||
ULARGE_INTEGER totalBytesWritten;
|
ULARGE_INTEGER totalBytesWritten;
|
||||||
|
|
||||||
TRACE("(%p)->(%p, %ld, %p, %p)\n", iface, pstm, cb.u.LowPart, pcbRead, pcbWritten);
|
TRACE("(%p)->(%p, %ld, %p, %p)\n", iface, pstm, cb.LowPart, pcbRead, pcbWritten);
|
||||||
|
|
||||||
totalBytesRead.QuadPart = 0;
|
totalBytesRead.QuadPart = 0;
|
||||||
totalBytesWritten.QuadPart = 0;
|
totalBytesWritten.QuadPart = 0;
|
||||||
|
@ -324,7 +323,7 @@ static HRESULT WINAPI sub_stream_CopyTo(
|
||||||
if ( cb.QuadPart >= sizeof(tmpBuffer) )
|
if ( cb.QuadPart >= sizeof(tmpBuffer) )
|
||||||
copySize = sizeof(tmpBuffer);
|
copySize = sizeof(tmpBuffer);
|
||||||
else
|
else
|
||||||
copySize = cb.u.LowPart;
|
copySize = cb.LowPart;
|
||||||
|
|
||||||
hr = IStream_Read(iface, tmpBuffer, copySize, &bytesRead);
|
hr = IStream_Read(iface, tmpBuffer, copySize, &bytesRead);
|
||||||
if (FAILED(hr)) break;
|
if (FAILED(hr)) break;
|
||||||
|
@ -2063,7 +2062,7 @@ static HRESULT create_body_offset_list(IStream *stm, const char *boundary, struc
|
||||||
|
|
||||||
zero.QuadPart = 0;
|
zero.QuadPart = 0;
|
||||||
hr = IStream_Seek(stm, zero, STREAM_SEEK_CUR, &cur);
|
hr = IStream_Seek(stm, zero, STREAM_SEEK_CUR, &cur);
|
||||||
start = cur.u.LowPart;
|
start = cur.LowPart;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
hr = IStream_Read(stm, overlap, PARSER_BUF_SIZE, &read);
|
hr = IStream_Read(stm, overlap, PARSER_BUF_SIZE, &read);
|
||||||
|
@ -2218,7 +2217,7 @@ static HRESULT WINAPI MimeMessage_Load(IMimeMessage *iface, IStream *pStm)
|
||||||
|
|
||||||
zero.QuadPart = 0;
|
zero.QuadPart = 0;
|
||||||
IStream_Seek(pStm, zero, STREAM_SEEK_END, &cur);
|
IStream_Seek(pStm, zero, STREAM_SEEK_END, &cur);
|
||||||
offsets.cbBodyEnd = cur.u.LowPart;
|
offsets.cbBodyEnd = cur.LowPart;
|
||||||
MimeBody_set_offsets(root_body->mime_body, &offsets);
|
MimeBody_set_offsets(root_body->mime_body, &offsets);
|
||||||
|
|
||||||
list_add_head(&This->body_tree, &root_body->entry);
|
list_add_head(&This->body_tree, &root_body->entry);
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
#define NONAMELESSUNION
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
#define NONAMELESSUNION
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
@ -316,7 +315,7 @@ static HRESULT WINAPI BindStatusCallback_OnDataAvailable(IBindStatusCallback *if
|
||||||
assert(pstgmed->tymed == TYMED_ISTREAM);
|
assert(pstgmed->tymed == TYMED_ISTREAM);
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
hres = IStream_Read(pstgmed->u.pstm, buf, sizeof(buf), &read);
|
hres = IStream_Read(pstgmed->pstm, buf, sizeof(buf), &read);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
if(!read)
|
if(!read)
|
||||||
|
@ -567,7 +566,7 @@ static HRESULT WINAPI MimeHtmlProtocol_Seek(IInternetProtocol *iface, LARGE_INTE
|
||||||
DWORD dwOrigin, ULARGE_INTEGER* plibNewPosition)
|
DWORD dwOrigin, ULARGE_INTEGER* plibNewPosition)
|
||||||
{
|
{
|
||||||
MimeHtmlProtocol *This = impl_from_IInternetProtocol(iface);
|
MimeHtmlProtocol *This = impl_from_IInternetProtocol(iface);
|
||||||
FIXME("(%p)->(%ld %ld %p)\n", This, dlibMove.u.LowPart, dwOrigin, plibNewPosition);
|
FIXME("(%p)->(%ld %ld %p)\n", This, dlibMove.LowPart, dwOrigin, plibNewPosition);
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue