Alexandre Julliard : winedevice: Build with msvcrt.

Alexandre Julliard julliard at winehq.org
Thu May 2 16:45:07 CDT 2019


Module: wine
Branch: master
Commit: 8a52a73fe923dea772dd1e709cce74e3809dfae7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8a52a73fe923dea772dd1e709cce74e3809dfae7

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu May  2 11:08:01 2019 +0200

winedevice: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 a0a4450..c4f1d9e 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 201a041..f4ebad2 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 <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 );




More information about the wine-cvs mailing list