winedevice: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d48ffbdc01
commit
8a52a73fe9
|
@ -1,6 +1,7 @@
|
||||||
MODULE = winedevice.exe
|
MODULE = winedevice.exe
|
||||||
APPMODE = -mwindows -municode
|
|
||||||
IMPORTS = advapi32 ntoskrnl
|
IMPORTS = advapi32 ntoskrnl
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mwindows -municode -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
device.c
|
device.c
|
||||||
|
|
|
@ -19,9 +19,6 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "ntstatus.h"
|
#include "ntstatus.h"
|
||||||
|
@ -30,7 +27,6 @@
|
||||||
#include "winternl.h"
|
#include "winternl.h"
|
||||||
#include "ddk/wdm.h"
|
#include "ddk/wdm.h"
|
||||||
#include "wine/svcctl.h"
|
#include "wine/svcctl.h"
|
||||||
#include "wine/unicode.h"
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/heap.h"
|
#include "wine/heap.h"
|
||||||
|
|
||||||
|
@ -70,7 +66,7 @@ static DWORD device_handler( DWORD ctrl, const WCHAR *driver_name )
|
||||||
DWORD result = NO_ERROR;
|
DWORD result = NO_ERROR;
|
||||||
WCHAR *str;
|
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;
|
return STATUS_NO_MEMORY;
|
||||||
|
|
||||||
lstrcpyW( str, servicesW );
|
lstrcpyW( str, servicesW );
|
||||||
|
|
Loading…
Reference in New Issue