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

This commit is contained in:
Francois Gouget 2008-11-17 15:01:31 +01:00 committed by Alexandre Julliard
parent 90b04c7b93
commit 7c2f5f065a
1 changed files with 7 additions and 6 deletions

View File

@ -19,6 +19,7 @@
*/ */
#define COBJMACROS #define COBJMACROS
#define NONAMELESSUNION
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
@ -350,12 +351,12 @@ static HRESULT POP3Transport_ParseResponse(POP3Transport *This, char *pszRespons
{ {
switch (This->command) switch (This->command)
{ {
case POP3_UIDL: hr = parse_uidl_response(This, &pResponse->rUidlInfo); break; case POP3_UIDL: hr = parse_uidl_response(This, &pResponse->u.rUidlInfo); break;
case POP3_STAT: hr = parse_stat_response(This, &pResponse->rStatInfo); break; case POP3_STAT: hr = parse_stat_response(This, &pResponse->u.rStatInfo); break;
case POP3_LIST: hr = parse_list_response(This, &pResponse->rListInfo); break; case POP3_LIST: hr = parse_list_response(This, &pResponse->u.rListInfo); break;
case POP3_DELE: hr = parse_dele_response(This, &pResponse->dwPopId); break; case POP3_DELE: hr = parse_dele_response(This, &pResponse->u.dwPopId); break;
case POP3_RETR: hr = parse_retr_response(This, &pResponse->rRetrInfo); break; case POP3_RETR: hr = parse_retr_response(This, &pResponse->u.rRetrInfo); break;
case POP3_TOP: hr = parse_top_response(This, &pResponse->rTopInfo); break; case POP3_TOP: hr = parse_top_response(This, &pResponse->u.rTopInfo); break;
default: default:
This->state = STATE_DONE; This->state = STATE_DONE;
break; break;