Commit 8a52a73f authored by Alexandre Julliard's avatar Alexandre Julliard

winedevice: Build with msvcrt.

parent d48ffbdc
MODULE = winedevice.exe
APPMODE = -mwindows -municode
IMPORTS = advapi32 ntoskrnl
EXTRADLLFLAGS = -mwindows -municode -mno-cygwin
C_SRCS = \
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 <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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment