Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d1a03462
Commit
d1a03462
authored
Feb 23, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Mar 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: MCI does not support the 0xhexadecimal notation.
parent
d9d52672
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
mci.c
dlls/winmm/mci.c
+1
-1
mci.c
dlls/winmm/tests/mci.c
+6
-0
No files found.
dlls/winmm/mci.c
View file @
d1a03462
...
...
@@ -978,7 +978,7 @@ static BOOL MCI_GetDWord(DWORD* data, LPWSTR* ptr)
DWORD
val
;
LPWSTR
ret
;
val
=
strtoulW
(
*
ptr
,
&
ret
,
0
);
val
=
strtoulW
(
*
ptr
,
&
ret
,
1
0
);
switch
(
*
ret
)
{
case
'\0'
:
break
;
...
...
dlls/winmm/tests/mci.c
View file @
d1a03462
...
...
@@ -249,6 +249,9 @@ static void test_mciParser(HWND hwnd)
err
=
mciSendString
(
"status x 2 track 3"
,
buf
,
sizeof
(
buf
),
NULL
);
todo_wine
ok
(
err
==
MCIERR_OUTOFRANGE
,
"status 2(position) track 3: %s
\n
"
,
dbg_mcierr
(
err
));
err
=
mciSendString
(
"status x 0x4"
,
buf
,
sizeof
(
buf
),
NULL
);
todo_wine
ok
(
err
==
MCIERR_BAD_CONSTANT
,
"status 0x4: %s
\n
"
,
dbg_mcierr
(
err
));
err
=
mciSendString
(
"status x 4"
,
buf
,
sizeof
(
buf
),
hwnd
);
ok
(
!
err
,
"status 4(mode): %s
\n
"
,
dbg_mcierr
(
err
));
if
(
!
err
)
ok
(
!
strcmp
(
buf
,
"stopped"
),
"status 4(mode), got: %s
\n
"
,
buf
);
...
...
@@ -874,6 +877,9 @@ static void test_playWAVE(HWND hwnd)
ok
(
!
err
,
"mci seek to 250 wait notify returned %s
\n
"
,
dbg_mcierr
(
err
));
test_notification
(
hwnd
,
"seek wait notify"
,
MCI_NOTIFY_SUCCESSFUL
);
err
=
mciSendString
(
"seek mysound to 0xfa"
,
NULL
,
0
,
NULL
);
ok
(
err
==
MCIERR_BAD_INTEGER
,
"mci seek to 0xfa returned %s
\n
"
,
dbg_mcierr
(
err
));
err
=
mciSendString
(
"status mysound position notify"
,
buf
,
sizeof
(
buf
),
hwnd
);
ok
(
!
err
,
"mci status position notify returned %s
\n
"
,
dbg_mcierr
(
err
));
if
(
!
err
)
ok
(
!
strcmp
(
buf
,
"250"
),
"mci status position: %s
\n
"
,
buf
);
...
...
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