Ivan Leo : quartz: Fix media type detection.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jun 22 06:17:03 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 16449744914a400f876fa24eb3829a6f01f08e5c
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=16449744914a400f876fa24eb3829a6f01f08e5c
Author: Ivan Leo <ivanleo at gmail.com>
Date: Wed Jun 21 21:49:35 2006 +0100
quartz: Fix media type detection.
---
dlls/quartz/filesource.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c
index 68ed1b9..a44ca36 100644
--- a/dlls/quartz/filesource.c
+++ b/dlls/quartz/filesource.c
@@ -82,14 +82,14 @@ static unsigned char byte_from_hex_char(
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;
}
More information about the wine-cvs
mailing list