winedevice: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-05-02 11:08:01 +02:00
parent d48ffbdc01
commit 8a52a73fe9
2 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,7 @@
MODULE = winedevice.exe
APPMODE = -mwindows -municode
IMPORTS = advapi32 ntoskrnl
EXTRADLLFLAGS = -mwindows -municode -mno-cygwin
C_SRCS = \
device.c

View File

@ -19,9 +19,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#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 );