}
}
+static void free_header(header_t *header)
+{
+ list_remove(&header->entry);
+ PropVariantClear(&header->value);
+ empty_param_list(&header->params);
+ heap_free(header);
+}
+
static void empty_header_list(struct list *list)
{
header_t *header, *cursor2;
LIST_FOR_EACH_ENTRY_SAFE(header, cursor2, list, header_t, entry)
{
- list_remove(&header->entry);
- PropVariantClear(&header->value);
- empty_param_list(&header->params);
- HeapFree(GetProcessHeap(), 0, header);
+ free_header(header);
}
}
if(found)
{
- list_remove(&cursor->entry);
- HeapFree(GetProcessHeap(), 0, cursor);
+ free_header(cursor);
return S_OK;
}
}
HRESULT hr;
const char *pszHello;
char *pszCommand;
- const char szHostName[] = "localhost"; /* FIXME */
+ static const char szHostName[] = "localhost"; /* FIXME */
TRACE("\n");
if ((This->pending_message.rAddressList.prgAddress[This->ulCurrentAddressIndex].addrtype & ADDR_TOFROM_MASK) == ADDR_TO)
{
- const char szCommandFormat[] = "RCPT TO: <%s>\n";
+ static const char szCommandFormat[] = "RCPT TO: <%s>\n";
char *szCommand;
int len = sizeof(szCommandFormat) - 2 /* "%s" */ +
strlen(This->pending_message.rAddressList.prgAddress[This->ulCurrentAddressIndex].szEmail);
static HRESULT WINAPI SMTPTransport_SendMessage(ISMTPTransport2 *iface,
LPSMTPMESSAGE pMessage)
{
+ static const char szCommandFormat[] = "MAIL FROM: <%s>\n";
SMTPTransport *This = (SMTPTransport *)iface;
ULONG i, size;
LPSTR pszFromAddress = NULL;
- const char szCommandFormat[] = "MAIL FROM: <%s>\n";
char *szCommand;
int len;
HRESULT hr;
static HRESULT WINAPI SMTPTransport_CommandMAIL(ISMTPTransport2 *iface, LPSTR pszEmailFrom)
{
+ static const char szCommandFormat[] = "MAIL FROM: <%s>\n";
SMTPTransport *This = (SMTPTransport *)iface;
- const char szCommandFormat[] = "MAIL FROM: <%s>\n";
char *szCommand;
int len;
HRESULT hr;
static HRESULT WINAPI SMTPTransport_CommandRCPT(ISMTPTransport2 *iface, LPSTR pszEmailTo)
{
+ static const char szCommandFormat[] = "RCPT TO: <%s>\n";
SMTPTransport *This = (SMTPTransport *)iface;
- const char szCommandFormat[] = "RCPT TO: <%s>\n";
char *szCommand;
int len;
HRESULT hr;
static HRESULT WINAPI SMTPTransport_CommandEHLO(ISMTPTransport2 *iface)
{
+ static const char szCommandFormat[] = "EHLO %s\n";
+ static const char szHostname[] = "localhost"; /* FIXME */
SMTPTransport *This = (SMTPTransport *)iface;
- const char szCommandFormat[] = "EHLO %s\n";
- const char szHostname[] = "localhost"; /* FIXME */
char *szCommand;
int len = sizeof(szCommandFormat) - 2 /* "%s" */ + sizeof(szHostname);
HRESULT hr;
static HRESULT WINAPI SMTPTransport_CommandHELO(ISMTPTransport2 *iface)
{
+ static const char szCommandFormat[] = "HELO %s\n";
+ static const char szHostname[] = "localhost"; /* FIXME */
SMTPTransport *This = (SMTPTransport *)iface;
- const char szCommandFormat[] = "HELO %s\n";
- const char szHostname[] = "localhost"; /* FIXME */
char *szCommand;
int len = sizeof(szCommandFormat) - 2 /* "%s" */ + sizeof(szHostname);
HRESULT hr;
static HRESULT WINAPI SMTPTransport_CommandAUTH(ISMTPTransport2 *iface,
LPSTR pszAuthType)
{
+ static const char szCommandFormat[] = "AUTH %s\n";
SMTPTransport *This = (SMTPTransport *)iface;
- const char szCommandFormat[] = "AUTH %s\n";
char *szCommand;
int len;
HRESULT hr;
reactos/dll/win32/imaadp32.acm # Synced to WineStaging-4.0
reactos/dll/win32/imagehlp # Synced to WineStaging-3.3
reactos/dll/win32/imm32 # Synced to WineStaging-4.0
-reactos/dll/win32/inetcomm # Synced to WineStaging-3.17
+reactos/dll/win32/inetcomm # Synced to WineStaging-4.0
reactos/dll/win32/inetmib1 # Synced to WineStaging-3.17
reactos/dll/win32/initpki # Synced to WineStaging-3.3
reactos/dll/win32/inseng # Synced to WineStaging-3.3