msvideo.dll16: Implement DrawDibProfileDisplay

Bruno Jesus 00cpxxx at gmail.com
Wed Jan 25 22:29:40 CST 2017


From: Michael Müller <michael at fds-team.de>

Fixes https://bugs.winehq.org/show_bug.cgi?id=42022 and also tested with Encarta 95 which currently is rated as garbage due to the same function.

Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
---
 dlls/msvideo.dll16/msvideo.dll16.spec | 2 +-
 dlls/msvideo.dll16/msvideo16.c        | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/dlls/msvideo.dll16/msvideo.dll16.spec b/dlls/msvideo.dll16/msvideo.dll16.spec
index f45f644..01dbbf3 100644
--- a/dlls/msvideo.dll16/msvideo.dll16.spec
+++ b/dlls/msvideo.dll16/msvideo.dll16.spec
@@ -35,7 +35,7 @@
 111 stub DRAWDIBCHANGEPALETTE
 112 pascal -ret16 DrawDibRealize(word word word) DrawDibRealize16
 113 stub DRAWDIBTIME
-114 stub DRAWDIBPROFILEDISPLAY
+114 pascal -ret16 DrawDibProfileDisplay(segptr) DrawDibProfileDisplay16
 115 stub STRETCHDIB
 118 pascal -ret16 DrawDibStart(word long) DrawDibStart16
 119 pascal -ret16 DrawDibStop(word) DrawDibStop16
diff --git a/dlls/msvideo.dll16/msvideo16.c b/dlls/msvideo.dll16/msvideo16.c
index 8f02cc1..28f126c 100644
--- a/dlls/msvideo.dll16/msvideo16.c
+++ b/dlls/msvideo.dll16/msvideo16.c
@@ -121,6 +121,15 @@ UINT16 VFWAPI DrawDibRealize16(HDRAWDIB16 hdd, HDC16 hdc,
 }
 
 /*************************************************************************
+ *      DrawDibProfileDisplay     [MSVIDEO.114]
+ */
+BOOL16 VFWAPI DrawDibProfileDisplay16(LPBITMAPINFOHEADER lpbi)
+{
+    TRACE("(%p)\n", lpbi);
+    return DrawDibProfileDisplay(lpbi);
+}
+
+/*************************************************************************
  *		DrawDibStart		[MSVIDEO.118]
  */
 BOOL16 VFWAPI DrawDibStart16(HDRAWDIB16 hdd, DWORD rate)
-- 
2.8.0




More information about the wine-patches mailing list