stubs for capCreateCaptureWindowA/W

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ChangeLog:
--------------
	* dlls/avicap32/Makefile.in, dlls/avicap32/avicap32.spec, dlls/avicap32/avicap32_main.c
	Stefan Leichter <Stefan.Leichter@camline.com>
	Added stubs for capCreateCaptureWindowA/W to get freeVCR started without crash

diff -urw wine-20020904/dlls/avicap32/Makefile.in wine/dlls/avicap32/Makefile.in
--- wine-20020904/dlls/avicap32/Makefile.in     Tue Jun 11 21:22:58 2002
+++ wine/dlls/avicap32/Makefile.in      Fri Oct  4 15:10:52 2002
@@ -3,6 +3,7 @@
 SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = avicap32.dll
+IMPORTS   = ntdll

 LDDLLFLAGS = @LDDLLFLAGS@
 SYMBOLFILE = $(MODULE).tmp.o
diff -urw wine-20020904/dlls/avicap32/avicap32.spec wine/dlls/avicap32/avicap32.spec
--- wine-20020904/dlls/avicap32/avicap32.spec   Thu Jul 11 20:00:40 2002
+++ wine/dlls/avicap32/avicap32.spec    Fri Oct  4 14:19:25 2002
@@ -1,4 +1,4 @@
-@ stub capCreateCaptureWindowA
-@ stub capCreateCaptureWindowW
+@ stdcall capCreateCaptureWindowA(str  long long long long ptr long) capCreateCaptureWindowA
+@ stdcall capCreateCaptureWindowW(wstr long long long long ptr long) capCreateCaptureWindowW
 @ stdcall capGetDriverDescriptionA(long ptr long ptr long) capGetDriverDescriptionA
 @ stdcall capGetDriverDescriptionW(long ptr long ptr long) capGetDriverDescriptionW
diff -urw wine-20020904/dlls/avicap32/avicap32_main.c wine/dlls/avicap32/avicap32_main.c
--- wine-20020904/dlls/avicap32/avicap32_main.c Thu Jul 11 20:00:40 2002
+++ wine/dlls/avicap32/avicap32_main.c  Fri Oct  4 20:47:26 2002
@@ -18,8 +18,35 @@

 #include "vfw.h"
 #include "wine/debug.h"
+#include "winternl.h"

 WINE_DEFAULT_DEBUG_CHANNEL(avicap);
+
+HWND VFWAPI capCreateCaptureWindowW(LPCWSTR lpszWindowName, DWORD dwStyle, INT x,
+                                    INT y, INT nWidth, INT nHeight, HWND hWnd,
+                                    INT nID)
+{
+    FIXME("%s, %08x, %08x, %08x, %08x, %08x, %p, %08x\n",
+           debugstr_w(lpszWindowName), dwStyle,
+           x, y, nWidth, nHeight, hWnd, nID);
+    return NULL;
+}
+
+HWND VFWAPI capCreateCaptureWindowA(LPCSTR lpszWindowName, DWORD dwStyle, INT x,
+                                    INT y, INT nWidth, INT nHeight, HWND hWnd,
+                                    INT nID)
+{   UNICODE_STRING nameW;
+    HWND retW;
+
+    if (lpszWindowName) RtlCreateUnicodeStringFromAsciiz(&nameW, lpszWindowName);
+    else nameW.Buffer = NULL;
+
+    retW = capCreateCaptureWindowW(nameW.Buffer, dwStyle, x, y, nWidth, nHeight,
+                                   hWnd, nID);
+    RtlFreeUnicodeString(&nameW);
+
+    return retW;
+}

 BOOL VFWAPI capGetDriverDescriptionA(WORD wDriverIndex, LPSTR lpszName,
                                     INT cbName, LPSTR lpszVer, INT cbVer)


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux