From 6894af6fc0232d9ed7b62fa5e83b4dc3e453076b Mon Sep 17 00:00:00 2001
From: Stefan Leichter <Stefan.Leichter@camline.com>
Date: Mon, 23 Aug 2010 21:33:00 +0200
Subject: [PATCH] msvideo: Forward MCIWndCreate16 to MCIWndCreateA.

---
 dlls/msvideo.dll16/msvideo.dll16.spec |  2 +-
 dlls/msvideo.dll16/msvideo16.c        | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/dlls/msvideo.dll16/msvideo.dll16.spec b/dlls/msvideo.dll16/msvideo.dll16.spec
index b44fcde69c9..894fc9c4e61 100644
--- a/dlls/msvideo.dll16/msvideo.dll16.spec
+++ b/dlls/msvideo.dll16/msvideo.dll16.spec
@@ -62,7 +62,7 @@
 244 stub ICSEQCOMPRESSFRAMESTART
 245 stub ICSEQCOMPRESSFRAMEEND
 246 stub ICSEQCOMPRESSFRAME
-250 stub _MCIWNDCREATE
+250 cdecl _MCIWndCreate(word word long str) MCIWndCreate16
 251 stub _MCIWNDREGISTERCLASS
 252 stub GETOPENFILENAMEPREVIEW
 253 stub GETSAVEFILENAMEPREVIEW
diff --git a/dlls/msvideo.dll16/msvideo16.c b/dlls/msvideo.dll16/msvideo16.c
index e157808efff..93724c9a60f 100644
--- a/dlls/msvideo.dll16/msvideo16.c
+++ b/dlls/msvideo.dll16/msvideo16.c
@@ -30,6 +30,7 @@
 #include "winreg.h"
 #include "winuser.h"
 #include "wine/winbase16.h"
+#include "wownt32.h"
 #include "vfw16.h"
 #include "wine/debug.h"
 
@@ -973,3 +974,12 @@ BOOL WINAPI VIDEO_LibMain(DWORD fdwReason, HINSTANCE hinstDLL, WORD ds,
     }
     return TRUE;
 }
+
+/***********************************************************************
+ *                      MCIWndCreate(MSVIDEO.250)
+ */
+HWND16 CDECL MCIWndCreate16(HWND16 hwnd, HINSTANCE16 hinst16,
+                              DWORD style, LPSTR file)
+{
+    return HWND_16(MCIWndCreateA(HWND_32(hwnd), 0, style, file));
+}
-- 
GitLab