[HLINK] Sync with Wine Staging 4.18. CORE-16441
[reactos.git] / dll / win32 / hlink / hlink_private.h
index 2613209..560e328 100644 (file)
@@ -30,7 +30,6 @@
 #include "hlink.h"
 
 #include "wine/heap.h"
-#include "wine/unicode.h"
 
 extern HRESULT HLink_Constructor(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
 extern HRESULT HLinkBrowseContext_Constructor(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
@@ -42,7 +41,7 @@ static inline LPWSTR hlink_strdupW(LPCWSTR str)
     if(str) {
         DWORD size;
 
-        size = (strlenW(str)+1)*sizeof(WCHAR);
+        size = (lstrlenW(str)+1)*sizeof(WCHAR);
         ret = heap_alloc(size);
         memcpy(ret, str, size);
     }
@@ -57,7 +56,7 @@ static inline LPWSTR hlink_co_strdupW(LPCWSTR str)
     if(str) {
         DWORD size;
 
-        size = (strlenW(str)+1)*sizeof(WCHAR);
+        size = (lstrlenW(str)+1)*sizeof(WCHAR);
         ret = CoTaskMemAlloc(size);
         memcpy(ret, str, size);
     }