Zebediah Figura : qcap: Build with msvcrt.
Alexandre Julliard
julliard at winehq.org
Fri Nov 27 16:04:38 CST 2020
Module: wine
Branch: master
Commit: ee7bba6a4fe4b6586e45b7b5b7952e94f453adb2
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ee7bba6a4fe4b6586e45b7b5b7952e94f453adb2
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Thu Nov 26 22:34:33 2020 -0600
qcap: Build with msvcrt.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/qcap/Makefile.in | 2 ++
dlls/qcap/filewriter.c | 4 ++--
dlls/qcap/qcap_private.h | 1 -
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/qcap/Makefile.in b/dlls/qcap/Makefile.in
index a3b6ba78fb9..298274accc6 100644
--- a/dlls/qcap/Makefile.in
+++ b/dlls/qcap/Makefile.in
@@ -3,6 +3,8 @@ IMPORTS = strmiids uuid ole32 oleaut32 gdi32 advapi32
DELAYIMPORTS = msvfw32
PARENTSRC = ../strmbase
+EXTRADLLFLAGS = -mno-cygwin
+
C_SRCS = \
audiorecord.c \
avico.c \
diff --git a/dlls/qcap/filewriter.c b/dlls/qcap/filewriter.c
index c3ba6c4d3eb..c377471ed7d 100644
--- a/dlls/qcap/filewriter.c
+++ b/dlls/qcap/filewriter.c
@@ -245,9 +245,9 @@ static HRESULT WINAPI filesinkfilter_SetFileName(IFileSinkFilter *iface,
if (mt)
FIXME("Ignoring media type %p.\n", mt);
- if (!(new_filename = heap_alloc((strlenW(filename) + 1) * sizeof(WCHAR))))
+ if (!(new_filename = heap_alloc((wcslen(filename) + 1) * sizeof(WCHAR))))
return E_OUTOFMEMORY;
- strcpyW(new_filename, filename);
+ wcscpy(new_filename, filename);
heap_free(filter->filename);
filter->filename = new_filename;
diff --git a/dlls/qcap/qcap_private.h b/dlls/qcap/qcap_private.h
index 7c27c689677..4100c8c33d7 100644
--- a/dlls/qcap/qcap_private.h
+++ b/dlls/qcap/qcap_private.h
@@ -28,7 +28,6 @@
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/strmbase.h"
-#include "wine/unicode.h"
extern HINSTANCE qcap_instance DECLSPEC_HIDDEN;
More information about the wine-cvs
mailing list