Eric Pouech : dbghelp: Fixed offset computation for bitfields inside structures in Codeview debug information .

Alexandre Julliard julliard at winehq.org
Mon Sep 8 07:41:21 CDT 2008


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

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Sat Sep  6 22:19:46 2008 +0200

dbghelp: Fixed offset computation for bitfields inside structures in Codeview debug information.

---

 dlls/dbghelp/msc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index 04b0224..da6c710 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -525,13 +525,13 @@ static void codeview_add_udt_element(struct codeview_type_parse* ctp,
         case LF_BITFIELD_V1:
             symt_add_udt_element(ctp->module, symt, name,
                                  codeview_fetch_type(ctp, cv_type->bitfield_v1.type, FALSE),
-                                 cv_type->bitfield_v1.bitoff,
+                                 (value << 3) + cv_type->bitfield_v1.bitoff,
                                  cv_type->bitfield_v1.nbits);
             return;
         case LF_BITFIELD_V2:
             symt_add_udt_element(ctp->module, symt, name,
                                  codeview_fetch_type(ctp, cv_type->bitfield_v2.type, FALSE),
-                                 cv_type->bitfield_v2.bitoff,
+                                 (value << 3) + cv_type->bitfield_v2.bitoff,
                                  cv_type->bitfield_v2.nbits);
             return;
         }




More information about the wine-cvs mailing list