Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
70161bc1
Commit
70161bc1
authored
Sep 11, 2015
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvideo: Add support for 16-bit MCIWndProc.
parent
303172e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
Makefile.in
dlls/msvideo.dll16/Makefile.in
+1
-1
msvideo16.c
dlls/msvideo.dll16/msvideo16.c
+23
-3
No files found.
dlls/msvideo.dll16/Makefile.in
View file @
70161bc1
MODULE
=
msvideo.dll16
IMPORTS
=
msvfw32 version advapi32
IMPORTS
=
msvfw32 version advapi32
user32
EXTRADLLFLAGS
=
-m16
-Wb
,--main-module,msvfw32.dll
...
...
dlls/msvideo.dll16/msvideo16.c
View file @
70161bc1
...
...
@@ -981,11 +981,31 @@ BOOL CDECL MCIWndRegisterClass16(void)
return
MCIWndRegisterClass
();
}
static
LRESULT
(
WINAPI
*
pMCIWndProc
)(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
);
static
LRESULT
WINAPI
MCIWndProc16
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
switch
(
msg
)
{
case
MCIWNDM_SENDSTRINGA
:
lparam
=
(
ULONG_PTR
)
MapSL
(
lparam
);
break
;
default:
break
;
}
return
CallWindowProcA
(
pMCIWndProc
,
hwnd
,
msg
,
wparam
,
lparam
);
}
/***********************************************************************
* MCIWndCreate(MSVIDEO.250)
*/
HWND16
CDECL
MCIWndCreate16
(
HWND16
hwnd
,
HINSTANCE16
hinst16
,
DWORD
style
,
LPSTR
file
)
HWND16
CDECL
MCIWndCreate16
(
HWND16
parent
,
HINSTANCE16
hinst16
,
DWORD
style
,
LPSTR
file
)
{
return
HWND_16
(
MCIWndCreateA
(
HWND_32
(
hwnd
),
0
,
style
,
file
));
HWND
hwnd
=
MCIWndCreateA
(
HWND_32
(
parent
),
0
,
style
,
file
);
if
(
hwnd
)
pMCIWndProc
=
(
void
*
)
SetWindowLongPtrA
(
hwnd
,
GWLP_WNDPROC
,
(
ULONG_PTR
)
MCIWndProc16
);
return
HWND_16
(
hwnd
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment