Piotr Caban : winemapi: Don't use strcasecmp.

Alexandre Julliard julliard at winehq.org
Fri Mar 29 16:28:14 CDT 2019


Module: wine
Branch: master
Commit: 5cdaf92c4595a10a9577682858a5d7ae07c1ac6c
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5cdaf92c4595a10a9577682858a5d7ae07c1ac6c

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Fri Mar 29 16:37:46 2019 +0100

winemapi: Don't use strcasecmp.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winemapi/sendmail.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/winemapi/sendmail.c b/dlls/winemapi/sendmail.c
index 03a29ba..cfb27e5 100644
--- a/dlls/winemapi/sendmail.c
+++ b/dlls/winemapi/sendmail.c
@@ -34,6 +34,7 @@
 #include "winreg.h"
 #include "shellapi.h"
 #include "shlwapi.h"
+#include "winternl.h"
 #include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(winemapi);
@@ -121,7 +122,7 @@ ULONG WINAPI MAPISendMail(LHANDLE session, ULONG_PTR uiparam,
 
         if (address)
         {
-            if (!strncasecmp(address, smtp, sizeof(smtp) - 1))
+            if (!_strnicmp(address, smtp, sizeof(smtp) - 1))
                 address += sizeof(smtp) - 1;
 
             switch (message->lpRecips[i].ulRecipClass)
@@ -213,7 +214,7 @@ ULONG WINAPI MAPISendMail(LHANDLE session, ULONG_PTR uiparam,
 
         if (address)
         {
-            if (!strncasecmp(address, smtp, sizeof(smtp) - 1))
+            if (!_strnicmp(address, smtp, sizeof(smtp) - 1))
                 address += sizeof(smtp) - 1;
 
             switch (message->lpRecips[i].ulRecipClass)




More information about the wine-cvs mailing list