From 8a52a73fe923dea772dd1e709cce74e3809dfae7 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 2 May 2019 11:08:01 +0200 Subject: [PATCH] winedevice: Build with msvcrt. Signed-off-by: Alexandre Julliard --- programs/winedevice/Makefile.in | 3 ++- programs/winedevice/device.c | 6 +----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/programs/winedevice/Makefile.in b/programs/winedevice/Makefile.in index a0a4450cafb..c4f1d9ec6b7 100644 --- a/programs/winedevice/Makefile.in +++ b/programs/winedevice/Makefile.in @@ -1,6 +1,7 @@ MODULE = winedevice.exe -APPMODE = -mwindows -municode IMPORTS = advapi32 ntoskrnl +EXTRADLLFLAGS = -mwindows -municode -mno-cygwin + C_SRCS = \ device.c diff --git a/programs/winedevice/device.c b/programs/winedevice/device.c index 201a0411d60..f4ebad2f2d0 100644 --- a/programs/winedevice/device.c +++ b/programs/winedevice/device.c @@ -19,9 +19,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include "config.h" -#include "wine/port.h" - #include #include "ntstatus.h" @@ -30,7 +27,6 @@ #include "winternl.h" #include "ddk/wdm.h" #include "wine/svcctl.h" -#include "wine/unicode.h" #include "wine/debug.h" #include "wine/heap.h" @@ -70,7 +66,7 @@ static DWORD device_handler( DWORD ctrl, const WCHAR *driver_name ) DWORD result = NO_ERROR; WCHAR *str; - if (!(str = heap_alloc( sizeof(servicesW) + strlenW(driver_name)*sizeof(WCHAR) ))) + if (!(str = heap_alloc( sizeof(servicesW) + lstrlenW(driver_name)*sizeof(WCHAR) ))) return STATUS_NO_MEMORY; lstrcpyW( str, servicesW );