[ATL] Sync with Wine Staging 4.18. CORE-16441
[reactos.git] / dll / win32 / atl / atl.c
index 4acee5d..6461d69 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "wine/debug.h"
 #include "wine/heap.h"
-#include "wine/unicode.h"
 
 #ifdef __REACTOS__
 #include <wingdi.h>
@@ -351,7 +350,7 @@ HRESULT WINAPI AtlLoadTypeLib(HINSTANCE inst, LPCOLESTR lpszIndex,
 
     TRACE("(%p %s %p %p)\n", inst, debugstr_w(lpszIndex), pbstrPath, ppTypeLib);
 
-    index_len = lpszIndex ? strlenW(lpszIndex) : 0;
+    index_len = lpszIndex ? lstrlenW(lpszIndex) : 0;
     path = heap_alloc((MAX_PATH+index_len)*sizeof(WCHAR) + sizeof(tlb_extW));
     if(!path)
         return E_OUTOFMEMORY;