dpnet: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-06-03 10:32:20 +02:00
parent 5e5a48469c
commit c80ad80a92
9 changed files with 5 additions and 16 deletions

View File

@ -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 \

View File

@ -19,7 +19,6 @@
*
*/
#include "config.h"
#include <stdarg.h>
@ -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;

View File

@ -19,7 +19,6 @@
*
*/
#include "config.h"
#include <stdarg.h>

View File

@ -19,7 +19,6 @@
*
*/
#include "config.h"
#include <stdarg.h>

View File

@ -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 <wine/list.h>
#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;
}

View File

@ -19,7 +19,6 @@
*
*/
#include "config.h"
#include <stdarg.h>

View File

@ -21,7 +21,6 @@
*
*/
#include "config.h"
#include <stdarg.h>

View File

@ -19,7 +19,6 @@
*
*/
#include "config.h"
#include <stdarg.h>

View File

@ -20,7 +20,6 @@
*
*/
#include "config.h"
#include <stdarg.h>