[PATCH 1/1] dbghelp/msc: support LF_INDEX* in enumeration type definition

Eric Pouech wine at gitlab.winehq.org
Wed Jun 29 07:54:22 CDT 2022


From: Eric Pouech <eric.pouech at gmail.com>

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
 dlls/dbghelp/msc.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index 1c58b0e9cf6..ce2ad9b4e01 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -907,6 +907,18 @@ static BOOL codeview_add_type_enum_field_list(struct codeview_type_parse* ctp,
             break;
         }
 
+        case LF_INDEX_V1:
+            if (!codeview_add_type_enum_field_list(ctp, symt, type->index_v1.ref))
+                return FALSE;
+            ptr += 2 + 2;
+            break;
+
+        case LF_INDEX_V2:
+            if (!codeview_add_type_enum_field_list(ctp, symt, type->index_v2.ref))
+                return FALSE;
+            ptr += 2 + 2 + 4;
+            break;
+
         default:
             FIXME("Unsupported type %04x in ENUM field list\n", type->generic.id);
             return FALSE;
-- 
GitLab

https://gitlab.winehq.org/wine/wine/-/merge_requests/341



More information about the wine-devel mailing list