Commit b5ffe31d authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

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

parent 8f61250b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment