From 2612f61fff45a547b86b3b4e60c00b9005563b70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alex=20Villac=C3=ADs=20Lasso?= Date: Tue, 29 Mar 2005 18:57:15 +0000 Subject: [PATCH] Fix failure to notice the use of a GIF palette index greater or equal to 128 for transparency. --- dlls/oleaut32/olepicture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index 20298e05473..2d2d0658c5d 100644 --- a/dlls/oleaut32/olepicture.c +++ b/dlls/oleaut32/olepicture.c @@ -1071,7 +1071,7 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) { eb = si->ExtensionBlocks + i; if (eb->Function == 0xF9 && eb->ByteCount == 4) { if ((eb->Bytes[0] & 1) == 1) { - transparent = eb->Bytes[3]; + transparent = (unsigned char)eb->Bytes[3]; } } } -- 2.11.4.GIT