Use the Unicode string functions from wine/unicode.h instead of the
crtdll ones.
diff --git a/loader/pe_resource.c b/loader/pe_resource.c
index 4379d33..29f13c6 100644
--- a/loader/pe_resource.c
+++ b/loader/pe_resource.c
@@ -13,6 +13,7 @@
#include <stdlib.h>
#include <sys/types.h>
#include "wine/winestring.h"
+#include "wine/unicode.h"
#include "windef.h"
#include "winnls.h"
#include "pe_image.h"
@@ -22,7 +23,6 @@
#include "process.h"
#include "stackframe.h"
#include "neexe.h"
-#include "crtdll.h"
#include "debugtools.h"
/**********************************************************************
@@ -72,7 +72,7 @@
entryTable[entrynum].u1.s.NameOffset);
if(namelen != str->Length)
continue;
- if(CRTDLL__wcsnicmp(name,str->NameString,str->Length)==0)
+ if(strncmpiW(name,str->NameString,str->Length)==0)
return (PIMAGE_RESOURCE_DIRECTORY) (
root +
entryTable[entrynum].u2.s.OffsetToDirectory);