[INETCOMM] Sync with Wine Staging 4.18. CORE-16441
[reactos.git] / dll / win32 / inetcomm / mimeole.c
index 4706149..d69c40c 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "windef.h"
 #include "winbase.h"
+#include "wine/winternl.h"
 #include "winuser.h"
 #include "objbase.h"
 #include "ole2.h"
@@ -39,7 +40,6 @@
 #include "wine/heap.h"
 #include "wine/list.h"
 #include "wine/debug.h"
-#include "wine/unicode.h"
 
 #include "inetcomm_private.h"
 
@@ -768,13 +768,13 @@ static void init_content_encoding(MimeBody *body, header_t *header)
 {
     const char *encoding = header->value.u.pszVal;
 
-    if(!strcasecmp(encoding, "base64"))
+    if(!_strnicmp(encoding, "base64", -1))
         body->encoding = IET_BASE64;
-    else if(!strcasecmp(encoding, "quoted-printable"))
+    else if(!_strnicmp(encoding, "quoted-printable", -1))
         body->encoding = IET_QP;
-    else if(!strcasecmp(encoding, "7bit"))
+    else if(!_strnicmp(encoding, "7bit", -1))
         body->encoding = IET_7BIT;
-    else if(!strcasecmp(encoding, "8bit"))
+    else if(!_strnicmp(encoding, "8bit", -1))
         body->encoding = IET_8BIT;
     else
         FIXME("unknown encoding %s\n", debugstr_a(encoding));
@@ -3715,13 +3715,13 @@ HRESULT WINAPI MimeOleObjectFromMoniker(BINDF bindf, IMoniker *moniker, IBindCtx
 
     TRACE("display name %s\n", debugstr_w(display_name));
 
-    len = strlenW(display_name);
+    len = lstrlenW(display_name);
     mhtml_url = heap_alloc((len+1)*sizeof(WCHAR) + sizeof(mhtml_prefixW));
     if(!mhtml_url)
         return E_OUTOFMEMORY;
 
     memcpy(mhtml_url, mhtml_prefixW, sizeof(mhtml_prefixW));
-    strcpyW(mhtml_url + ARRAY_SIZE(mhtml_prefixW), display_name);
+    lstrcpyW(mhtml_url + ARRAY_SIZE(mhtml_prefixW), display_name);
     HeapFree(GetProcessHeap(), 0, display_name);
 
     hres = CreateURLMoniker(NULL, mhtml_url, moniker_new);