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
3ba2c694
Commit
3ba2c694
authored
Aug 18, 2022
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Aug 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciqtz32: Fix MCI_DGV_WINDOW_HWND error handling.
parent
ebd1b7ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
mciqtz.c
dlls/mciqtz32/mciqtz.c
+7
-2
mci.c
dlls/winmm/tests/mci.c
+3
-3
No files found.
dlls/mciqtz32/mciqtz.c
View file @
3ba2c694
...
...
@@ -1000,8 +1000,13 @@ static DWORD MCIQTZ_mciWindow(UINT wDevID, DWORD dwFlags, LPMCI_DGV_WINDOW_PARMS
if
(
dwFlags
&
MCI_TEST
)
return
0
;
if
(
dwFlags
&
MCI_DGV_WINDOW_HWND
&&
(
IsWindow
(
lpParms
->
hWnd
)
||
!
lpParms
->
hWnd
))
{
HWND
hwnd
=
lpParms
->
hWnd
?
lpParms
->
hWnd
:
wma
->
window
;
if
(
dwFlags
&
MCI_DGV_WINDOW_HWND
)
{
HWND
hwnd
;
if
(
lpParms
->
hWnd
&&
!
IsWindow
(
lpParms
->
hWnd
))
return
MCIERR_NO_WINDOW
;
if
(
!
wma
->
parent
)
return
MCIERR_INTERNAL
;
hwnd
=
lpParms
->
hWnd
?
lpParms
->
hWnd
:
wma
->
window
;
TRACE
(
"Setting parent window to %p.
\n
"
,
hwnd
);
if
(
wma
->
parent
!=
hwnd
)
{
...
...
dlls/winmm/tests/mci.c
View file @
3ba2c694
...
...
@@ -1432,11 +1432,11 @@ static void test_asyncWaveTypeMpegvideo(HWND hwnd)
sprintf
(
buf
,
"window mysound handle %lu"
,
PtrToUlong
(
GetDesktopWindow
()));
err
=
mciSendStringA
(
buf
,
NULL
,
0
,
NULL
);
todo_wine
ok
(
err
==
MCIERR_INTERNAL
,
"mci window handle (desktop) returned %s
\n
"
,
dbg_mcierr
(
err
));
ok
(
err
==
MCIERR_INTERNAL
,
"mci window handle (desktop) returned %s
\n
"
,
dbg_mcierr
(
err
));
sprintf
(
buf
,
"window mysound handle %lu"
,
(
unsigned
long
)
0xdeadbeef
);
err
=
mciSendStringA
(
buf
,
NULL
,
0
,
NULL
);
todo_wine
ok
(
err
==
MCIERR_NO_WINDOW
,
"mci window handle (deadbeef) returned %s
\n
"
,
dbg_mcierr
(
err
));
ok
(
err
==
MCIERR_NO_WINDOW
,
"mci window handle (deadbeef) returned %s
\n
"
,
dbg_mcierr
(
err
));
err
=
mciSendStringA
(
"close mysound wait"
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mci close wait returned %s
\n
"
,
dbg_mcierr
(
err
));
...
...
@@ -1659,7 +1659,7 @@ static void test_video_window(void)
/* Test MCI_DGV_WINDOW_HWND. */
parm
.
win
.
hWnd
=
(
HWND
)
0xdeadbeef
;
err
=
mciSendCommandW
(
id
,
MCI_WINDOW
,
MCI_DGV_WINDOW_HWND
,
(
DWORD_PTR
)
&
parm
);
todo_wine
ok
(
err
==
MCIERR_NO_WINDOW
,
"Got %s.
\n
"
,
dbg_mcierr
(
err
));
ok
(
err
==
MCIERR_NO_WINDOW
,
"Got %s.
\n
"
,
dbg_mcierr
(
err
));
parm
.
win
.
hWnd
=
main_window
;
err
=
mciSendCommandW
(
id
,
MCI_WINDOW
,
MCI_DGV_WINDOW_HWND
,
(
DWORD_PTR
)
&
parm
);
...
...
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