mapi32: Write-strings warnings fix

Andrew Talbot Andrew.Talbot at talbotville.com
Mon Jul 3 12:35:46 CDT 2006


Alexandre Julliard wrote:

> Andrew Talbot <Andrew.Talbot at talbotville.com> writes:
> 
>> @@ -113,8 +114,8 @@
>>      }
>>      if (message->nFileCount) FIXME("Ignoring attachments\n");
>>  
>> -    subject = message->lpszSubject ? message->lpszSubject : "";
>> -    body = message->lpszNoteText ? message->lpszNoteText : "";
>> +    subject = message->lpszSubject ? message->lpszSubject : empty;
>> +    body = message->lpszNoteText ? message->lpszNoteText : empty;
> 
> These are not part of a Win32 API structure, there's no reason they
> can't be made const.
> 
Great. I shall submit a patch to declare all the string elements of
Wine's MapiMessage type as LPCSTR.

Thanks,

-- Andy.





More information about the wine-devel mailing list