mapi32: Write-strings warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Sat Jun 3 14:40:27 CDT 2006
I am presuming that Wine's MapiMessage struct will accept either an empty
string constant or NULL to represent the lack of supplied text for
lpszSubject or lpszNoteText, as in the SDK.
---
Changelog:
mapi32: Write-strings warnings fix.
diff -urN a/dlls/mapi32/sendmail.c b/dlls/mapi32/sendmail.c
--- a/dlls/mapi32/sendmail.c 2006-05-23 17:24:40.000000000 +0100
+++ b/dlls/mapi32/sendmail.c 2006-06-03 20:30:23.000000000 +0100
@@ -113,8 +113,8 @@
}
if (message->nFileCount) FIXME("Ignoring attachments\n");
- subject = message->lpszSubject ? message->lpszSubject : "";
- body = message->lpszNoteText ? message->lpszNoteText : "";
+ subject = message->lpszSubject;
+ body = message->lpszNoteText;
TRACE( "Subject: %s\n", debugstr_a(subject) );
TRACE( "Body: %s\n", debugstr_a(body) );
More information about the wine-patches
mailing list