Got rid of the Wine internal lstrcpy* functions and of winestring.h.
diff --git a/loader/module.c b/loader/module.c
index af249b6..35b2abe 100644
--- a/loader/module.c
+++ b/loader/module.c
@@ -12,7 +12,6 @@
#include <sys/types.h>
#include <unistd.h>
#include "wine/winbase16.h"
-#include "wine/winestring.h"
#include "winerror.h"
#include "heap.h"
#include "neexe.h"
@@ -1212,7 +1211,8 @@
{
LPSTR fnA = (char*)HeapAlloc( GetProcessHeap(), 0, size );
DWORD res = GetModuleFileNameA( hModule, fnA, size );
- lstrcpynAtoW( lpFileName, fnA, size );
+ if (size > 0 && !MultiByteToWideChar( CP_ACP, 0, fnA, -1, lpFileName, size ))
+ lpFileName[size-1] = 0;
HeapFree( GetProcessHeap(), 0, fnA );
return res;
}