Fixed iType for non and file meta dc.
authorJames Tabor <james.tabor@reactos.org>
Sun, 26 Nov 2006 00:53:07 +0000 (00:53 +0000)
committerJames Tabor <james.tabor@reactos.org>
Sun, 26 Nov 2006 00:53:07 +0000 (00:53 +0000)
svn path=/trunk/; revision=24829

reactos/dll/win32/gdi32/include/gdi32p.h
reactos/dll/win32/gdi32/objects/metafile.c

index f769a01..a3ea09a 100644 (file)
@@ -50,6 +50,7 @@ typedef struct tagENHMETAFILE {
   PVOID      pvMetaBuffer;
   HANDLE     hFile;      /* Handle for disk based MetaFile */
   DWORD      Size;
+  INT        iType;
   PENHMETAHEADER emf;
   UINT       handles_size, cur_handles;
   HGDIOBJ   *handles;
index ad824dd..d890d4b 100644 (file)
@@ -254,10 +254,10 @@ HDC WINAPI CreateEnhMetaFileW(
             return NULL;
        }
        EmfDC.hFile = hFile;
-       EmfDC->emf.iType = 2;
+       EmfDC.iType = 2;
     }
     else
-        EmfDC->emf.iType = 1;
+        EmfDC.iType = 1;
 
     return mDC;
 }