Commit 16449744 authored by Ivan Leo's avatar Ivan Leo Committed by Alexandre Julliard

quartz: Fix media type detection.

parent 41ee9853
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment