Evan Stade : oleaut32: Recognize EMF header when loading picture.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 31 07:54:40 CDT 2007


Module: wine
Branch: master
Commit: 249c07c16104c764481f6701349961998290f418
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=249c07c16104c764481f6701349961998290f418

Author: Evan Stade <estade at gmail.com>
Date:   Mon Jul 30 19:09:33 2007 -0700

oleaut32: Recognize EMF header when loading picture.

---

 dlls/oleaut32/olepicture.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index 01e766d..e1c61b2 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -1693,6 +1693,7 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
           if (!memcmp(&(header[0]), "GIF8",     4) ||   /* GIF header */
               !memcmp(&(header[0]), "BM",       2) ||   /* BMP header */
               !memcmp(&(header[0]), "\xff\xd8", 2) ||   /* JPEG header */
+              (header[0] == EMR_HEADER)            ||   /* EMF header */
               (header[1] > statstg.cbSize.QuadPart)||   /* invalid size */
               (header[1]==0)
           ) {/* Found start of bitmap data */




More information about the wine-cvs mailing list