quartz: Fix media type detection.

This commit is contained in:
Ivan Leo 2006-06-21 21:49:35 +01:00 committed by Alexandre Julliard
parent 41ee9853f7
commit 1644974491

View file

@ -82,14 +82,14 @@ static unsigned char byte_from_hex_char(WCHAR wHex)
case '7':
case '8':
case '9':
return wHex - '0';
return (wHex - '0') & 0xf;
case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
case 'f':
return wHex - 'a' + 10;
return (wHex - 'a' + 10) & 0xf;
default:
return 0;
}