Francois Gouget : imagehlp: Add two missing fields.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 3 08:04:43 CDT 2007


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Aug  3 00:49:50 2007 +0200

imagehlp: Add two missing fields.

---

 dlls/imagehlp/access.c |    2 ++
 include/dbghelp.h      |    4 +++-
 include/imagehlp.h     |   29 ++++++++++++++++-------------
 3 files changed, 21 insertions(+), 14 deletions(-)

diff --git a/dlls/imagehlp/access.c b/dlls/imagehlp/access.c
index 2aeedff..39e7afa 100644
--- a/dlls/imagehlp/access.c
+++ b/dlls/imagehlp/access.c
@@ -48,6 +48,8 @@ static LOADED_IMAGE IMAGEHLP_EmptyLoadedImage = {
   1,          /* Characteristics */
   FALSE,      /* fSystemImage */
   FALSE,      /* fDOSImage */
+  FALSE,      /* fReadOnly */
+  0,          /* Version */
   { &IMAGEHLP_EmptyLoadedImage.Links, &IMAGEHLP_EmptyLoadedImage.Links }, /* Links */
   148,        /* SizeOfImage; */
 };
diff --git a/include/dbghelp.h b/include/dbghelp.h
index e818096..d454635 100644
--- a/include/dbghelp.h
+++ b/include/dbghelp.h
@@ -27,7 +27,7 @@ extern "C" {
 
 typedef struct _LOADED_IMAGE
 {
-    LPSTR                       ModuleName;
+    PSTR                        ModuleName;
     HANDLE                      hFile;
     PUCHAR                      MappedAddress;
     PIMAGE_NT_HEADERS           FileHeader;
@@ -37,6 +37,8 @@ typedef struct _LOADED_IMAGE
     ULONG                       Characteristics;
     BOOLEAN                     fSystemImage;
     BOOLEAN                     fDOSImage;
+    BOOLEAN                     fReadOnly;
+    UCHAR                       Version;
     LIST_ENTRY                  Links;
     ULONG                       SizeOfImage;
 } LOADED_IMAGE, *PLOADED_IMAGE;
diff --git a/include/imagehlp.h b/include/imagehlp.h
index e37d921..89883d9 100644
--- a/include/imagehlp.h
+++ b/include/imagehlp.h
@@ -158,19 +158,22 @@ typedef enum {
  * Structures
  */
 
-typedef struct _LOADED_IMAGE {
-  LPSTR                   ModuleName;
-  HANDLE                hFile;
-  PUCHAR                  MappedAddress;
-  PIMAGE_NT_HEADERS     FileHeader;
-  PIMAGE_SECTION_HEADER LastRvaSection;
-  ULONG                   NumberOfSections;
-  PIMAGE_SECTION_HEADER Sections;
-  ULONG                   Characteristics;
-  BOOLEAN                 fSystemImage;
-  BOOLEAN                 fDOSImage;
-  LIST_ENTRY            Links;
-  ULONG                   SizeOfImage;
+typedef struct _LOADED_IMAGE
+{
+    PSTR                        ModuleName;
+    HANDLE                      hFile;
+    PUCHAR                      MappedAddress;
+    PIMAGE_NT_HEADERS           FileHeader;
+    PIMAGE_SECTION_HEADER       LastRvaSection;
+    ULONG                       NumberOfSections;
+    PIMAGE_SECTION_HEADER       Sections;
+    ULONG                       Characteristics;
+    BOOLEAN                     fSystemImage;
+    BOOLEAN                     fDOSImage;
+    BOOLEAN                     fReadOnly;
+    UCHAR                       Version;
+    LIST_ENTRY                  Links;
+    ULONG                       SizeOfImage;
 } LOADED_IMAGE, *PLOADED_IMAGE;
 
 typedef struct _WIN_CERTIFICATE {




More information about the wine-cvs mailing list