[Wine-patches] [eter-2.0.0 1/4] oleaut32: Recognize icon and cursor in the being loaded data. (eterbug #8330)

Dmitry Timoshkov dtimoshkov на etersoft.ru
Пн Июн 4 07:39:53 MSK 2012


---
 dlls/oleaut32/olepicture.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index b1185e5..3e3b4cb 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -1395,6 +1395,8 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface, IStream *pStm)
               !memcmp(&(header[0]), "BM",       2) ||   /* BMP header */
               !memcmp(&(header[0]), "\xff\xd8", 2) ||   /* JPEG header */
               (header[0] == EMR_HEADER)            ||   /* EMF header */
+              (header[0] == 0x10000)               ||   /* icon: idReserved 0, idType 1 */
+              (header[0] == 0x20000)               ||   /* cursor: idReserved 0, idType 2 */
               (header[1] > end.QuadPart)           ||   /* invalid size */
               (header[1]==0)
           ) {/* Found start of bitmap data */
-- 
1.7.10.1



Подробная информация о списке рассылки Wine-patches