diff --git a/dlls/dpnet/Makefile.in b/dlls/dpnet/Makefile.in index 541e104c64a..bcf07772e39 100644 --- a/dlls/dpnet/Makefile.in +++ b/dlls/dpnet/Makefile.in @@ -2,6 +2,8 @@ MODULE = dpnet.dll IMPORTLIB = dpnet IMPORTS = dxguid uuid ole32 advapi32 ws2_32 +EXTRADLLFLAGS = -mno-cygwin + C_SRCS = \ address.c \ client.c \ diff --git a/dlls/dpnet/address.c b/dlls/dpnet/address.c index 0bfa2bca037..6aa62a97785 100644 --- a/dlls/dpnet/address.c +++ b/dlls/dpnet/address.c @@ -19,7 +19,6 @@ * */ -#include "config.h" #include @@ -30,7 +29,6 @@ #include "winuser.h" #include "objbase.h" -#include "wine/unicode.h" #include "wine/debug.h" #include "dpnet_private.h" @@ -417,7 +415,7 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_GetComponentByIndex(IDirectPlay8Ad entry = This->components[dwComponentID]; - namesize = strlenW(entry->name); + namesize = lstrlenW(entry->name); if(*pdwBufferSize < entry->size || *pdwNameLen < namesize) { WARN("Buffer too small\n"); @@ -493,7 +491,7 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_AddComponent(IDirectPlay8Address * } break; case DPNA_DATATYPE_STRING: - if (((strlenW((WCHAR*)lpvData)+1)*sizeof(WCHAR)) != dwDataSize) + if (((lstrlenW((WCHAR*)lpvData)+1)*sizeof(WCHAR)) != dwDataSize) { WARN("Invalid STRING size, returning DPNERR_INVALIDPARAM\n"); return DPNERR_INVALIDPARAM; diff --git a/dlls/dpnet/client.c b/dlls/dpnet/client.c index ea491ef7432..e7024e1c013 100644 --- a/dlls/dpnet/client.c +++ b/dlls/dpnet/client.c @@ -19,7 +19,6 @@ * */ -#include "config.h" #include diff --git a/dlls/dpnet/dpnet_main.c b/dlls/dpnet/dpnet_main.c index cc80ebc07ab..445374cabb8 100644 --- a/dlls/dpnet/dpnet_main.c +++ b/dlls/dpnet/dpnet_main.c @@ -19,7 +19,6 @@ * */ -#include "config.h" #include diff --git a/dlls/dpnet/dpnet_private.h b/dlls/dpnet/dpnet_private.h index 2e72360c899..9458a5123aa 100644 --- a/dlls/dpnet/dpnet_private.h +++ b/dlls/dpnet/dpnet_private.h @@ -21,14 +21,9 @@ #ifndef __WINE_DPNET_PRIVATE_H #define __WINE_DPNET_PRIVATE_H -#ifndef __WINE_CONFIG_H -# error You must include config.h to use this header -#endif - #include "wine/heap.h" #include #include "winsock2.h" -#include "wine/unicode.h" #include "dplay8.h" #include "dplobby8.h" @@ -159,7 +154,7 @@ static inline WCHAR *heap_strdupW( const WCHAR *src ) { WCHAR *dst; if (!src) return NULL; - if ((dst = heap_alloc( (strlenW( src ) + 1) * sizeof(WCHAR) ))) strcpyW( dst, src ); + if ((dst = heap_alloc( (lstrlenW( src ) + 1) * sizeof(WCHAR) ))) lstrcpyW( dst, src ); return dst; } diff --git a/dlls/dpnet/lobbiedapp.c b/dlls/dpnet/lobbiedapp.c index d041e63624f..d58571aca87 100644 --- a/dlls/dpnet/lobbiedapp.c +++ b/dlls/dpnet/lobbiedapp.c @@ -19,7 +19,6 @@ * */ -#include "config.h" #include diff --git a/dlls/dpnet/peer.c b/dlls/dpnet/peer.c index 3e3cd9b770f..f935b2a3133 100644 --- a/dlls/dpnet/peer.c +++ b/dlls/dpnet/peer.c @@ -21,7 +21,6 @@ * */ -#include "config.h" #include diff --git a/dlls/dpnet/server.c b/dlls/dpnet/server.c index 46d5fe2183d..977771697ac 100644 --- a/dlls/dpnet/server.c +++ b/dlls/dpnet/server.c @@ -19,7 +19,6 @@ * */ -#include "config.h" #include diff --git a/dlls/dpnet/threadpool.c b/dlls/dpnet/threadpool.c index 7e84a5afbb9..22d871b40b4 100644 --- a/dlls/dpnet/threadpool.c +++ b/dlls/dpnet/threadpool.c @@ -20,7 +20,6 @@ * */ -#include "config.h" #include