winmm: MCI does not support the 0xhexadecimal notation.

This commit is contained in:
Jörg Höhle 2011-02-23 10:07:42 +01:00 committed by Alexandre Julliard
parent d9d5267237
commit d1a034627c
2 changed files with 7 additions and 1 deletions

View File

@ -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, 10);
switch (*ret) {
case '\0': break;

View File

@ -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);